Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Sudo/Mount Question

 
   Soft32 Home -> Linux -> General Discussions RSS
Next:  wireless-tools-gnumach & libiw?  
Author Message
UKnicks

External


Since: Apr 29, 2009
Posts: 1



(Msg. 1) Posted: Wed Apr 29, 2009 10:30 am
Post subject: Sudo/Mount Question
Archived from groups: linux>redhat (more info?)

So recently I've started using the /etc/sudoers file to grant
permissions to my users for certain processes/commands. One of these
command is mount. TAfter the user has mounted a filesystem using
sudo ,that filesystem is owned by root. Thus making it impossible for
them to add or remove any files.

So I guess my question is it possible to use the /etc/sudoers file
with the mount command so users can actually use the filesystems
mounted? Or is there a way to mount a file system so anybody has read/
write permissions and not just root?

I've looked online and seen a few people fix this with fstab changes
but I'm trying not to mess around with our fstab file if possible. I'm
not against doing it this way, but I'd like to find an alternative if
possible. Thanx
Back to top
Login to vote
Johnny Rebel

External


Since: Jan 05, 2009
Posts: 6



(Msg. 2) Posted: Wed Apr 29, 2009 8:25 pm
Post subject: Re: Sudo/Mount Question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

UKnicks wrote:
> So recently I've started using the /etc/sudoers file to grant
> permissions to my users for certain processes/commands. One of these
> command is mount. TAfter the user has mounted a filesystem using
> sudo ,that filesystem is owned by root. Thus making it impossible for
> them to add or remove any files.
>
> So I guess my question is it possible to use the /etc/sudoers file
> with the mount command so users can actually use the filesystems
> mounted? Or is there a way to mount a file system so anybody has read/
> write permissions and not just root?
>
> I've looked online and seen a few people fix this with fstab changes
> but I'm trying not to mess around with our fstab file if possible. I'm
> not against doing it this way, but I'd like to find an alternative if
> possible. Thanx

Hey,

I have always done this using the fstab, but see know reason you
couldn't let users issue the same mount options via sudo. You need the
mount options for your users, so your options are limited.

JR.


--


--> GNU/Linux is user friendly... it's just picky about its friends.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
question about mount -a - Hello everyone. I'm using Redhat AS2.1. one day, I tried to unmount /mnt/cdrom which was mounted for something to work...

hd mount question - I'm adding a second hard drive and wanted to mount it to a directory in my home directory. I created one single..

SUDO for Red Hat - I tried to run SUDO is Red Hat and it said user is not part of the sudoers list. I suppose I need to add this user to...

SUDO in RC.d doesn't work - Hi, I don't understand where is the problem I created a user 'toto' He also belongs to the group "wheel" E...

sudo into a common user - hello, i created 2 users 'junior' and 'senior' and was able to ssh into the box with these two accounts. now as..

Mount - Maybe it's a silly question, but... How can I mount FAT32 partititions writeable for ALL users?
       Soft32 Home -> Linux -> General Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]