LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-02-2007, 08:44 PM   #1
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
Having one line in fstab work for many users


I have a share on a remote computer that I want to connect to. The share's name is always "website", but on the remote computer it points to a specific directory depending on the username provided. I want to set up all the users on another computer to be able to mount their own instance of the share, but I would like to avoid having something like

Code:
//remote/website /home/a/website smbfs noauto,user 0 0
//remote/website /home/b/website smbfs noauto,user 0 0
//remote/website /home/c/website smbfs noauto,user 0 0
//remote/website /home/d/website smbfs noauto,user 0 0
//remote/website /home/e/website smbfs noauto,user 0 0

...
in my fstab file. Is there a way I can work around this?
 
Old 04-02-2007, 08:52 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
A simple approach for me would be to write a script that contains all those mounted shares and have rc.local call it when the system is near the end of the boot process.

-twantrd
 
Old 04-03-2007, 06:44 PM   #3
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Original Poster
Rep: Reputation: 32
Couple questions:

1. Since they would be mounted by root, would users be allowed to write to them?
2. This would have them all mounted all the time. Is there a way around that?
 
Old 04-04-2007, 01:58 AM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Quote:
1. Since they would be mounted by root, would users be allowed to write to them?
As long as the permissions are correct, the users should be able to write to files/directories just fine.

Quote:
2. This would have them all mounted all the time. Is there a way around that?
What's wrong with having it mounted all the time? In either case, since you don't want this then your answer is automount.

-twantrd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Line 7 in /etc/fstab is bad!!! Please Help da_xlnc Linux - General 9 07-20-2006 07:03 AM
Change ntfs line in fstab jojojo Linux - Newbie 10 06-17-2006 07:42 PM
Line 7 in fstab bad.... cooljed Linux - General 1 01-11-2006 07:42 AM
Bad line in fstab dubya Fedora 2 06-19-2005 03:49 PM
Weird fstab line dom_lochet Linux - Newbie 3 02-10-2005 07:23 AM


All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration