> Date: Mon, 1 Oct 2001 08:15:31 -0400
> From: Greg Wooledge <[EMAIL PROTECTED]>
>
> On Mon, Oct 01, 2001 at 02:30:02PM +0530, Admin, Wipro (CAP, GECSI) wrote:
>
> > But even i do this.....how will the permissions of all the system files .and
> > utilities change to
> > ur new user toor.
> Files on the disk don't have usernames associated with them. The owner
> of a file is stored as a numeric UID inside the inode. (Same for the
> group.)
>
> When you do an "ls -l", the ls command gets the UID of the owner of the
> file from the inode, then looks that number up to convert it into a name
Which can be seen easily with "ls -ln".
> for human readability. If you have two or more accounts in the passwd
> file that both have the same numeric UID, ls will print whichever name
> appears first.
Depending on the exact algorithm used to get the username
corresponding to the UID, you may archive the result you want by
placing the line with the other name before the one with "root" in
/etc/passwd.
fake:x:0:0:root:/root:/bin/bash
root:x:0:0:root:/root:/bin/bash
> > "Admin, Wipro (CAP, GECSI)" wrote:
> > > when i reboot my m/c...i get lot of error messages..
> > > /etc/rc2.d/S99dtlogin needs root perm
>
> This is where you need to be careful. Examine this script -- it's
> probably doing something like:
>
> if [ `whoami` != root ]; then ...; fi
>
> I don't know how this will act in the presence of multiple uid=0 accounts.
> (And of course, your script may look different.)
>
> Be prepared to edit these scripts as necessary.
And to check the 3GB (uncompressed) of sources you can find in
nowadays Linux distribution for such occurences.
Which leads me to say that this is not a good idea to try to rename root.
--
__Pascal_Bourguignon__ (o_ Software patents are endangering
() ASCII ribbon against html email //\ the computer industry all around
/\ and Microsoft attachments. V_/ the world http://lpf.ai.mit.edu/
1962:DO20I=1.100 2001:my($f)=`fortune`; http://petition.eurolinux.org/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT d? s++:++(+++)>++ a C+++ UB+++L++++$S+X++++>$ P- L+++ E++ W++
N++ o-- K- w------ O- M++$ V PS+E++ Y++ PGP++ t+ 5? X+ R !tv b++(+)
DI+++ D++ G++ e+++ h+(++) r? y---? UF++++
------END GEEK CODE BLOCK------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]