LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-21-2002, 12:00 PM   #1
rlpt
Member
 
Registered: Aug 2001
Location: dry land
Distribution: debian and slackware
Posts: 30

Rep: Reputation: 15
allowing non-root users to mount drives and shutdown


i have slackware 8.1 running on a laptop and it is driving me mad having to su root every time i want to mount a drive or shudown, does anyone know how i can allow non-root to do the above tasks.

cheers

rlpt
 
Old 09-21-2002, 12:19 PM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
For mounting, you will need to adjust your entrie(s) in fstab. Something like:
/dev/hdxx /mnt/files ext2 users,noauto,rw 0 0

Could be what you need, but you would obviously need to tailor it, and add/remove things in the options section. man mount and man fstab will give you a better idea of what's going on there.

As for shutting down, I just do a 3 fingered salute. That does not require root priviledges. Of course if you want to shutdown and halt, you can still do the 3 finger, but need to adjust in /etc/inittab what the entry says for the 3 fingered. Make it -h rather than -r for halt rather than reboot respectively.

Cool
 
Old 09-21-2002, 12:43 PM   #3
rlpt
Member
 
Registered: Aug 2001
Location: dry land
Distribution: debian and slackware
Posts: 30

Original Poster
Rep: Reputation: 15
thanks! i can now mount drives as a none root user but when i ctrl-alt-del nothing happens , the only reasons i can think of for it not working is the fact that im in X when i do it or that because my laptop has less keys than a real keyboard the delete key im using is sending the wrong signal.

cheers

rlpt
 
Old 09-21-2002, 06:35 PM   #4
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
For shutdown I used sudo to allow selected users to shutdown the computer.

Read the manpages on sudo, sudoers, and visudo.

Sudo explains about what sudo is and how it works.

Sudoers tells how the file is built and has samples of entries you need to make it work.

Visudo is the program used to edit the sudoers file.
 
  


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
Allowing users to shutdown - Slack 10.1 amwink Slackware 31 08-22-2006 11:59 AM
Allowing users to shutdown the system LinuxSeeker Linux - General 3 11-11-2004 09:18 AM
Allowing other users than root to mount drives DarkPhoenix Linux - Newbie 6 06-25-2004 06:28 AM
Allowing *some* users to mount ugenn Linux - General 8 03-01-2004 10:48 PM
Allowing all users to use 'shutdown' command mrde50garfield Mandriva 5 01-08-2004 09:58 AM


All times are GMT -5. The time now is 02:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration