Solved

Mount permissions for normal users

Posted on 2000-05-01
3
387 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

728 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