mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* What is the difference between 'login: root' and 'su -' ?
@ 2001-11-07 17:47 Peter Seiderer
       [not found] ` <20011107224824.G26218@niksula.cs.hut.fi>
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Peter Seiderer @ 2001-11-07 17:47 UTC (permalink / raw)
  To: linux-kernel

Hello,
tried today to mkfs.ext2 a partition of my disk and detected there is
a little difference between 'login: root' and 'su -'.

First I tried it this way:

	Welcome to SuSE Linux 7.0 (i386) - Kernel 2.4.14 (tty1).

	zodiak login: seiderer
	Password:
	seiderer@zodiak:~ > su -
	Password:
	zodiak:~ #
	zodiak:~ # mkfs.ext2 /dev/hdc4
	mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
	Filesystem label=
	OS type: Linux
	Block size=4096 (log=2)
	Fragment size=4096 (log=2)
	716672 inodes, 1432116 blocks
	71605 blocks (5.00%) reserved for the super user
	First data block=0
	44 block groups
	32768 blocks per group, 32768 fragments per group
	16288 inodes per group
	Superblock backups stored on blocks:
	        32768, 98304, 163840, 229376, 294912, 819200, 884736

	Writing inode tables: 16/44File size limit exceeded

strace showed that write returned wit EFBIG and the process ended with SIGXFSZ:

	write(1, "\10\10\10\10\10", 5)          = 5
	write(1, "16/44", 5)                    = 5
	_llseek(4, 18446744071562084352, [2147500032], SEEK_SET) = 0
	write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 32768) = -1 EFBIG (File too large)
	--- SIGXFSZ (File size limit exceeded) ---
	+++ killed by SIGXFSZ +++

When login in directly from the console as root everything went right:
	Welcome to SuSE Linux 7.0 (i386) - Kernel 2.4.14 (tty1).

	zodiak login: root
	Password:
	zodiak:~ # mkfs.ext2 /dev/hdc4
	mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
	Filesystem label=
	OS type: Linux
	Block size=4096 (log=2)
	Fragment size=4096 (log=2)
	716672 inodes, 1432116 blocks
	71605 blocks (5.00%) reserved for the super user
	First data block=0
	44 block groups
	32768 blocks per group, 32768 fragments per group
	16288 inodes per group
	Superblock backups stored on blocks:
	        32768, 98304, 163840, 229376, 294912, 819200, 884736

	Writing inode tables: done
	Writing superblocks and filesystem accounting information: done
	zodiak:~ #

The RLIMIT_FSIZE showed in both cases the same values:
getrlimit(RLIMIT_FSIZE) rlim_cur: 2147483647 rlim_max: 2147483647

Can anybody point me out what went wrong? Is it a kernel limit?

Peter


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-11-08 18:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-07 17:47 What is the difference between 'login: root' and 'su -' ? Peter Seiderer
     [not found] ` <20011107224824.G26218@niksula.cs.hut.fi>
2001-11-07 22:40   ` Peter Seiderer
     [not found]     ` <20011108081006.S1504@niksula.cs.hut.fi>
2001-11-08  8:46       ` Peter Seiderer
     [not found]         ` <20011108104634.T1504@niksula.cs.hut.fi>
2001-11-08  9:00           ` Peter Seiderer
     [not found]             ` <20011108111330.U1504@niksula.cs.hut.fi>
2001-11-08 10:14               ` Peter Seiderer
2001-11-08 14:20                 ` [patch] " Peter Seiderer
2001-11-08  7:31 ` Vitezslav Samel
2001-11-08 15:38 ` Tobias Diedrich
2001-11-08 18:35   ` Peter Seiderer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®