LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-05-2006, 11:41 AM   #1
varaahan
Member
 
Registered: Jul 2005
Location: chennai, india
Distribution: Puppy, Arch Linux,Absolute Linux
Posts: 83

Rep: Reputation: 15
shut down permission


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?

Boovarahan S
 
Old 06-05-2006, 11:44 AM   #2
jeelliso
Member
 
Registered: Oct 2005
Location: Knoxville, Tn (USA)
Distribution: OpenSUSE, Ubuntu
Posts: 250

Rep: Reputation: 30
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
Code:
man sudo
to learn more about it.
 
Old 06-05-2006, 12:17 PM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Quote:
Originally Posted by varaahan
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.
 
Old 06-05-2006, 12:31 PM   #4
varaahan
Member
 
Registered: Jul 2005
Location: chennai, india
Distribution: Puppy, Arch Linux,Absolute Linux
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Emerson
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.
 
Old 06-05-2006, 12:42 PM   #5
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
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.
 
Old 06-05-2006, 12:54 PM   #6
jeelliso
Member
 
Registered: Oct 2005
Location: Knoxville, Tn (USA)
Distribution: OpenSUSE, Ubuntu
Posts: 250

Rep: Reputation: 30
Quote:
Just I wanted to know how to get around the problem.
Like it said, use sudo.
 
Old 06-05-2006, 09:58 PM   #7
varaahan
Member
 
Registered: Jul 2005
Location: chennai, india
Distribution: Puppy, Arch Linux,Absolute Linux
Posts: 83

Original Poster
Rep: Reputation: 15
sudo requires again the root password which is not required in GUI mode.
Why this difference?
 
Old 06-05-2006, 10:16 PM   #8
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
This can be set in sudoers file, see 'man visudo' and 'man sudoers'.
 
Old 06-05-2006, 11:51 PM   #9
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
Shut down? Rhatlinux Slackware 14 10-09-2004 08:45 AM
cannot shut down greenlinux Mandriva 6 06-17-2004 05:30 PM
how do i shut down x? tomank Linux - Newbie 2 04-03-2004 11:31 AM
shut down won't shut system down taoweijia Linux - General 3 03-03-2004 07:05 PM


All times are GMT -5. The time now is 06:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration