Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-24-2004, 12:23 PM
|
#1
|
Member
Registered: Jan 2004
Location: Ho-Town, MI
Distribution: RH9
Posts: 34
Rep:
|
mount network drive fstab/umask?
Some background info...
I set up a script for my boss to run that mounted a Windows network shared drive. I set up sudo for it to work. The problem is when the script is run the directories and files are owned by root and he doesn't write access.
There has to be a way to set up the system so only he can mount the drive and then only he has access to the files. I was playing with the fstab file. I read some stuff on it, but I didn't fully understand it so I was blindly trying different things.
Has anyone done something similar or does anyone have any ideas at all?
Thanks in advance,
Matt
|
|
|
02-24-2004, 12:32 PM
|
#2
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
|
here would be an example of how to put an NFS volume in the fstab file, i'm sure the entry for a windows share would be similar
192.168.36.1:/mnt/burn1 /mnt/burn1 nfs defaults 0 0
it would probably look like
192.168.36.1:share smbfs defaults 0 0
|
|
|
02-24-2004, 01:45 PM
|
#3
|
Member
Registered: Jan 2004
Location: Ho-Town, MI
Distribution: RH9
Posts: 34
Original Poster
Rep:
|
But I only want one user to be able to mount the network drive....
|
|
|
02-24-2004, 01:49 PM
|
#4
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
|
hmm, that would have something to do with permissions, perhaps if only that user had the username and password for the samba share and you gave him a shell script that mounts it?
|
|
|
All times are GMT -5. The time now is 10:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|