[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linuxiran] Normal user called root [was:Download a File Via wget]
From: |
Hossein S. Zadeh |
Subject: |
Re: [linuxiran] Normal user called root [was:Download a File Via wget] |
Date: |
Thu, 21 Aug 2003 11:51:49 +1000 (EST) |
On Wed, 20 Aug 2003, Aryan Ameri wrote:
> >
> > Of course you can! Just edit /etc/passwd file.
> >
>
> No you can't. The reason is simple.
>
> On any Unix system, the first username that is assigned to the system is
> 'root'. On any Unix installation, you first setup root, and then add
> other users to the system.
Why don't you just try it? Unix systems have no concept of user names as
such. All functions work with UID. It id UID "0" (zero) that has a special
meaning in Unix, not username root.
It is job of the shell to translate UIDs to usernames (and back). For
example, you can create a new user, and change the username (but not the
UID) in /etc/passwd, and /etc/shadow files. The system will then know the
UID as the new username...
You can do the same thing with user "root". Just keep the UID as zero, and
change the username. You can also create a new user, and change the UID to
zero (in /etc/passwd file), and the new user will have "root" privileges.
Hossein
- [linuxiran] Download a File Via wget, Seyyed Mehdi Sheikhalishahi, 2003/08/19
- Re: [linuxiran] Download a File Via wget, Arash Bijanzadeh, 2003/08/19
- Re: [linuxiran] Download a File Via wget, Arash Zeini, 2003/08/19
- Re: [linuxiran] Download a File Via wget, Aryan Ameri, 2003/08/19
- Re: [linuxiran] Download a File Via wget, Hossein S. Zadeh, 2003/08/19
- Re: [linuxiran] Normal user called root [was:Download a File Via wget], Aryan Ameri, 2003/08/20
- Re: [linuxiran] Normal user called root [was:Download a File Via wget],
Hossein S. Zadeh <=
- Re: [linuxiran] Normal user called root [was:Download a File Via wget], Aryan Ameri, 2003/08/21
- Re: [linuxiran] Normal user called root [was:Download a File Via wget], Hossein S. Zadeh, 2003/08/22
- Re: [linuxiran] Normal user called root [was:Download a File Via wget], Aryan Ameri, 2003/08/23
- Re: [linuxiran] Normal user called root [was:Download a File Via wget], Arash Partow, 2003/08/21
- Re: [linuxiran] Normal user called root [was:Download a File Via wget], Aryan Ameri, 2003/08/22
- Re: [linuxiran] Normal user called root [was:Download a File Via wget], Zoup, 2003/08/22
- Re: [linuxiran] Normal user called root [was:Download a File Via wget], Aryan Ameri, 2003/08/23
- Re: [linuxiran] Normal user called root [was:Download a File Via wget], Zoup, 2003/08/23
- Re: [linuxiran] Normal user called root [was:Download a File Via wget], Aryan Ameri, 2003/08/23
- Re: [linuxiran] Download a File Via wget, Arash Bijanzadeh, 2003/08/20