Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In Debian/Slackware when I try to halt or reboot as an ordinary user
from console terminal, I am not allowed to do so (I get the msg
" only root can do that"). Using the chmod +777 command does not help.
But from GUI mode , I can halt the system as an ordinary user. How ?
Also in Debian , root is not given access to GUI. How to change it?
Typical programming practice uses a program called sudo that allows normal users to run programs as root. I'm pretty sure this is how your GUI does it. Run
Also in Debian , root is not given access to GUI. How to change it?
All you need to change this attitude is to learn, learn about Linux, about security etc. Finally you'll understand root account is not an user account and the GUI is designed for users.
All you need to change this attitude is to learn, learn about Linux, about security etc. Finally you'll understand root account is not an user account and the GUI is designed for users.
For an average home user, the security need not be so tight
(as in other distros). I never login as root and even I had
to use root's privileges I use a console terminal for that.
Just I wanted to know how to get around the problem.
Don't remember exactly, I think it was somewhere in XDM config file.
Security is needed for home users too. MS is using admin account as user account to please their braindead customers. As a result the spam arriving to my mailbox is relayed thru Windows mail zombies (was it 70% of spam all over the world?). And I hate it.
The suggestion that I do not recommend for all systems is set a sticky bit for the halt or reboot command. To do this set halt or reboot to 1555. This will make it read and execute for everybody. It is better to set it to 1550 and add a new group. Then specify what users can halt and reboot the system. I highly recommend setting up sudo, so certain users can halt and reboot the computer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.