[CLUE-Tech] su privileges
Marcin
marbej at wp.pl
Tue May 13 16:49:35 MDT 2003
Angelo Bertolli wrote:
> Is there any way to give root privileges to another account?
Of course :)
If you know a root's password, just type 'su - ' commend.
For example:
[some_user:localhost]$ whoami
some_user
[some_user:localhost]$ su -
password:
[root:localhost]$ whoami
root
Or, you can edit /etc/passwd and change user's UID to 0 (zero). This method
is very useful when you have a few administrators on your Linux, because this
way you can see which administrator loged and when :)
For security, and future analyse of logs it's good idea, first log in as user
and next become a root typing 'su -' commend. Look at /etc/securetty.
You can read much more about it in manual (man su, man group, man securetty;
also apropos su, apropos group)
Hope it's useful and my English was understanable...
--
Greetings from Poland
Marcin Betlej
e-mail: marbej at wp.pl
http://stud.wsi.edu.pl/~sibetlem/gzz/
More information about the clue-tech
mailing list