Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-18-2005, 03:48 PM
|
#1
|
|
Member
Registered: Jul 2005
Posts: 216
Rep:
|
adminstrator login while auto-login is on?
I have set auto-login for my user name, as nobody else uses my PC and I don't like stopping to enter a password. But what if I want to log in as administrator? I need the password box for that, and auto-login bypasses it.
|
|
|
|
07-18-2005, 03:51 PM
|
#2
|
|
Senior Member
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Arch Linux | CentOS | Ubuntu
Posts: 1,103
Rep:
|
so log back out after it logs on.. then you can get to the login manager..
|
|
|
|
07-19-2005, 03:46 AM
|
#3
|
|
Member
Registered: Jul 2005
Location: Wagga Wagga, Australia
Posts: 262
Rep:
|
It is a very bad thing to login to a GUI as root. You shold NEVER do it. This what leaves windoze so open to attack by viruses, trojans and other nasties.
The quickest is to open a terminal and use "su".
You can also ALT-CTRL-F1 to obtain a command login prompt and use ALT-F7 to return to your GUI.
|
|
|
|
07-19-2005, 04:22 AM
|
#4
|
|
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522
Rep:
|
Even better, as root you can set sudo access (/etc/sudoers), which basically gives a user root priveledges on commands when you prefix sudo on it so:
sudo emacs /etc/fstab
(user)password:
would allow a normal user to edit system configs when required.
either way means you can perform simple tasks without having to log in/out etc.
p.s it's worth noting that some programs are only included in the root path, like fdisk on my system in which case you need
su -
not just
su
this will make you inherit roots paths too.
Last edited by ethics; 07-19-2005 at 04:24 AM.
|
|
|
|
07-19-2005, 04:27 AM
|
#5
|
|
Member
Registered: Jul 2005
Location: Wagga Wagga, Australia
Posts: 262
Rep:
|
That is true. BUT if he is normally logged in as the user with sudo priviledges this will give anyone using the system root access albeit for 1 command at a time. This to me is not as secure as using su which is what I prefer.
|
|
|
|
07-19-2005, 04:51 AM
|
#6
|
|
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522
Rep:
|
Yup, you're right, although from the sudoers file you can add specific commands the user can run with sudo, limiting all others.
Not to mention the person would still need his password to execute via sudo, which no-one else should really have, and if they do surely you trust them not to go screwing with your system 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:24 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|