Solved

Mount permissions for normal users

Posted on 2000-05-01
3
382 Views
Last Modified: 2013-12-27
How can I give a regular user the permission to mount a certain volume (in Solaris)?  In linux you can add "users" to the options in the fstab, but I can't find anything similar in Solaris.

Thanks,

Paul
0
Comment
Question by:PaulKorzycki
3 Comments
 
LVL 1

Expert Comment

by:struyfsj
ID: 2768499
Paul,

In Solaris you have to have root privileges to mount file systems.

You could use a little utility like sudo (SwitchUser do).
 With sudo you can alow a specified user to execute a specified command (mount) on a specified host.

JS
0
 
LVL 2

Expert Comment

by:jonke
ID: 2768660
Depends whether these are NFS mounts or local mounts. If local mounts, then why not have these mounted all the time?

Otherwise, use the automount facility. If you want an explanation of this just shout.

0
 

Accepted Solution

by:
ddavis42 earned 50 total points
ID: 2806053
1.  chown root /etc/mount
2.  chmod 4511 /etc/mount
3.  chown root /etc/umount
4.  chmod 4511 /etc/umount

BUT - be careful how you use this.  It can open a HUGE security hole in your system.  If someone has a setuid trap door on a floppy already, mounting the file system adds it to the main system and allows the user to become root on the entire system just from a floppy.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now