LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-25-2005, 09:10 AM   #1
eduardo451
LQ Newbie
 
Registered: Mar 2005
Posts: 26

Rep: Reputation: 15
power down without being root?


I've installed Ubuntu on my wife's old computer, and I would like her to be able to power down and reboot without being root. How would I do this? It is a custom install using xfce, without gnome desktop installed, if that matters. Thanks.
 
Old 03-25-2005, 09:48 AM   #2
Linus VanPelt
Member
 
Registered: Mar 2003
Location: Manchester, NH, USA
Distribution: SuSE 9.1
Posts: 73

Rep: Reputation: 15
If you trust her with the root password, you could just have her do "sudo shutdown -r" from a command line.
 
Old 03-25-2005, 09:57 AM   #3
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
hi,
alternative:

create group shutdown
#addgroup shutdown
chamge ownership
#chown root.shutdown /sbin/shutdown
set the setui-Bit, to allow only members of ´shutdown´ to execute shutdown
#chmod 4754 /sbin/shutdown
make new link
#ln -s /sbin/shutdown /bin/shutdown
 
Old 03-25-2005, 10:10 AM   #4
eduardo451
LQ Newbie
 
Registered: Mar 2005
Posts: 26

Original Poster
Rep: Reputation: 15
It's not that I don't trust her with the root password. In fact, her present password doubles as the root password (at least it can be used for sudo commands). But having to use command line would be a turn-off for her, as would having to log back in as root. I want this to be more enjoyable and at least as easy for her as using Windoze, and she always hated having to log-in as Administrator to do stuff with Windoze. Of course, she never had to be Administrator to power down. Any suggestions?
 
Old 03-25-2005, 10:13 AM   #5
eduardo451
LQ Newbie
 
Registered: Mar 2005
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks overlord73. You must have posted while I was typing my last message. Could you clarify what you typed? Are these different options? If so, what's the difference?
 
Old 03-25-2005, 10:37 AM   #6
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
no difference options! just a little howto ;-)
follow from top to bottom

P.S.: # stand for console
 
Old 03-25-2005, 10:38 AM   #7
eduardo451
LQ Newbie
 
Registered: Mar 2005
Posts: 26

Original Poster
Rep: Reputation: 15
Nevermind overlord - I typed exactly what you did at the prompts, and it works great! Thanks a bunch!
 
Old 03-26-2005, 11:40 AM   #8
David_Moses
LQ Newbie
 
Registered: Jul 2004
Location: uk
Distribution: Ubuntu
Posts: 27

Rep: Reputation: 15
sort of the same

Hi guys

I think i have a problem on similar lines.

I want my girlfriend to be able to use her USB and access the internet through linux, so far she has only ever used M$ and i'm trying hard to convert her.

The problem is i don;t want her to have root priv's or really the password (unless i have to), but she can't mount her usb stick or run dhclient to get a ip address without these access priv's

I have created scripts that run off the desktop and promts for the password (not ideal) so all she will have to do click on the icons.

Because my wireless connection is weak i often have to re-run dhclient after the connection gets droped. Otherwise i would configure it to run at boot.

I'm sure there is a way to do this.

Any help would be greatly appreciated.

DM
 
  


Reply



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
NFS security problem --> too much power for root acb67 Linux - General 5 01-30-2011 04:49 PM
creating user account with root power linux_lover2005 Linux - Newbie 6 01-04-2007 12:51 AM
(echo -n "standby" > /sys/power/state) only allowed for root? brynjarh Debian 5 02-14-2005 09:08 AM
Enabling power save/power management/cpu freq scaling features for a Debian system zero79 Debian 0 12-19-2004 01:17 PM
power failure = no root tobysaville Linux - General 1 06-22-2004 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:59 PM.

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
Open Source Consulting | Domain Registration