LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-09-2003, 08:45 AM   #1
N|ghtwo|f
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Rep: Reputation: 0
normal user access devices


how can i let normal user shutdown, use pump, access cdrom and other things?

I use debian, and when i make halt he didnt turn off completly, i need to press the botton, i can i fix this
 
Old 07-21-2003, 09:49 PM   #2
slapNUT
Member
 
Registered: Jun 2001
Location: Recycle Bin
Distribution: Linux & Everything else on VirtualBox
Posts: 144

Rep: Reputation: 15
What I do for shutdown is to edit the /etc/inittab file and change this line:
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
to this
ca::ctrlaltdel:/sbin/shutdown -t3 -h now

Now to shut down my computer I dont need su access I just exit X Windows <Ctrl><Alt><Backspace>and then <Ctrl><Alt><Del>.

I dont use pump?

For CDRom I did this:
chmod ug+wr root:cdwriter /dev/<cdrom>
Where <cdrom> is the actual device and not the symlink to the device.

Then you create the cdwriter group if it does not exist and put all users you want to be able to access the cdrom in the cdwriter group.
 
Old 07-21-2003, 11:34 PM   #3
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
you can add access rights for stuff for your regular users if you use sudo...type sudo -l as a regular user, and enter your password, and it'll probably say the user XXX (where XXX is your user) has no rights
then you edit the file /etc/sudoers and give the user rights to stuff like mounting cdroms or whatever and you can run whatever commands you give that user access to...
for instance when i type sudo -l at my prompt i get this:
User XXX may run the following commands on this host:
(root) /sbin/mount /mnt/cdrom
(root) /sbin/umount /mnt/cdrom
(root) /sbin/mount /mnt/floppy
(root) /sbin/umount /mnt/floppy
so i just set up my regular user to have mouting and unmounting privledges on the cdrom and floppy.
 
Old 07-22-2003, 03:48 AM   #4
lfur
Member
 
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209

Rep: Reputation: 30
N|ghtwo,

for accessing cdrom, floppy drive and other media which have an entry in /etc/fstab, you dont have to use sudo, just edit /etc/fstab so it looks something like that:

/dev/cdrom /mnt/cdrom iso9660 noauto,user, ro 0 0

The part that makes the difference is the user, which replaces the root and allows users to mount devices withouth root privileges.

Enjoy
 
Old 07-22-2003, 06:16 AM   #5
N|ghtwo|f
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Original Poster
Rep: Reputation: 0
thanx people.
 
  


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
Not Able to Access NTFS as normal user rob0t Slackware 6 09-21-2005 07:57 PM
Getting hardware access as normal user Zotty Programming 2 02-01-2005 12:13 PM
normal user access folders jwijesundra Linux - Newbie 3 01-16-2005 11:46 AM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 03:30 AM
can't read /devices as normal user babysealclubber Linux - Hardware 2 11-01-2003 03:07 AM


All times are GMT -5. The time now is 02:52 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