Solved

Mount permissions for normal users

Posted on 2000-05-01
3
384 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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

803 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