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