RE: How to autologin as a superuser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can you not just use
Su -l
And type your password?

-----Original Message-----
From: fedora-list-bounces@xxxxxxxxxx
[mailto:fedora-list-bounces@xxxxxxxxxx] On Behalf Of Mostafa Z. Afgani
Sent: Monday, December 05, 2005 9:28 AM
To: For users of Fedora Core releases
Subject: Re: How to autologin as a superuser

THUFIR HAWAT wrote:

> I'm not clear on how sudo works.  Rather than typing "su -" followed
> by root's password, can I set it up so that I just type "sudo" and
> then I *am* root until I exit?

Well, as other people have pointed out, there are many security issues. 
But there is a way to do exactly what you want:

1. Run 'visudo' as root

2. append the following below the "root   ALL=(ALL)   ALL" line:
	your_user_name  ALL = NOPASSWD: /bin/su

3. Save and exit vi

Now, you can just type 'sudo su -' and you'll get a root shell. Of 
course, it's a good idea to do a 'man sudoers' first!

> Thanks,
> 
> Thufir
> 

Best,
-M

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux