mount and shutdown for normal users?

mount and shutdown for normal users?

Post by y.lefeu.. » Sun, 15 Nov 1998 04:00:00



Hello,

Just a simple crazy question:
I would like to allow 'normal' users to use 'mount' and 'shutdown commands.
I change permissions (+x) and set UID and GID bit.
But both commands still tell me:
#shutdown: must be root
#mount:only root can do that.

thanks for help.

a few more question:
where can I find sample '.emacs' files
I can't get sound with LinuxPPCQuake!!!!!
when i press capslock key, I get an extra 'Q' char which I can't get rid of.

 
 
 

mount and shutdown for normal users?

Post by Guillaume Marca » Thu, 19 Nov 1998 04:00:00


Quote:> #shutdown: must be root

  shtudown can only be down by the root, and from the console. Log as the
root (su)...

Quote:> #mount:only root can do that.

  You can allow normal users to mount disk if the disk is listed in the
/etc/fstab file and the correct flag is set. See man mount and man fstab.

  Gus.

 
 
 

mount and shutdown for normal users?

Post by Mark Manning/Muniz Eng » Tue, 24 Nov 1998 04:00:00


Actually, what you can do for the shutdown thing is to have a special
account which people can log into to shutdown the system.  Give it root
privileges, make it so it automatically does a shutdown and then logs
them right back out.  This will prevent them from trying to get into the
system with root privileges and mucking up everything else.  Of course,
it does make it so anyone can shutdown your system if they know the
password.  But that is a risk you have to take when you are going to
allow others to have this ability.  :-)
 
 
 

1. mount & shutdown as normal user

Hi:

We are using a standalone PC that is shared among DOS users and
Linux users. As a root user, I would like to enable normal users to
mount a floppy drive and shut down the system for reboot.

1) I have added the following line to /etc/fstab

/dev/fd0     /floppy      msdos        user,noauto   0 0

But when a normal user attempts to mount a floppy drive, this
message appears:

mount: must be superuser to use mount

What else should I do?

2) Is it possible to enable a normal user to shutdown the system. How?

Thank you in advance.

Somchart

2. Using Linux/IPChains instead of commercial firewall

3. Shutdown bu normal user

4. Ibook and mouse

5. shutdown, pam and normal user

6. Encourage support of FreeBSD books

7. Normal User X shutdown

8. UNIX modem control s/w?

9. shutdown, pam and normal user

10. shutdown&reboot for normal users???

11. Shutdown script as normal user

12. shutdown as normal user?

13. How can a normal user mount a CDROM?