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
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.

> "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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to