LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-15-2004, 07:39 AM   #1
donbellioni
Member
 
Registered: Mar 2004
Location: UK
Distribution: Slackware 10
Posts: 137

Rep: Reputation: 15
How to add remote filesystem to fstab


Ive managed to mount the shared partition from my networked windows machine on my linux system, and it mounts by means of a script run from rc.local on startup. However, i can only write to it as root. The permissions of /mnt/remote is drwxr-xr-x. I tried chmodding to 777 but it seems to reset to the above whenever its mounted. I think it changes to the permissions set up in fstab, but what should i put in fstab to allow write permission to the current user?

I added this to fstab but i just sorta guessed what to put in, needless to say it doesnt work

Code:
//study/D$			/mnt/remote		 smbfs		 user,umask=000,defaults 0  0
Thanks.
 
Old 08-15-2004, 08:30 AM   #2
donbellioni
Member
 
Registered: Mar 2004
Location: UK
Distribution: Slackware 10
Posts: 137

Original Poster
Rep: Reputation: 15
Code:
//study/D$   /mnt/remote  smbfs username=winusrname,password=winpasswd,uid=linuxusrname  0  0
Got it, cheers anyway!
 
Old 08-15-2004, 08:50 AM   #3
seabass55
Member
 
Registered: Jan 2003
Location: 127.0.0.1
Distribution: Fedora&Gentoo
Posts: 207

Rep: Reputation: 30
Just a suggestion you can take the username and password out of fstab...
in the file put..

create a file in etc or wherever call it whatever you want...
in the file put...

username = whateveritis
password = whateveritis

save it
chmod it 600
In fstab where you have username and password...put

credentials=/whereever/you/saved/the/file
 
Old 08-16-2004, 04:19 PM   #4
donbellioni
Member
 
Registered: Mar 2004
Location: UK
Distribution: Slackware 10
Posts: 137

Original Poster
Rep: Reputation: 15
Thanks for the suggestion, i think ill use that method.

Cheers.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
write permissions in /etc/fstab for vfat filesystem btb Linux - Newbie 5 10-24-2005 01:37 PM
'specify the filesystem type' shouldn't appear if set to 'auto' in fstab. ExCIA Linux - Newbie 4 05-22-2005 09:58 AM
/etc/fstab NTFS filesystem boyd98 Linux - Newbie 4 02-06-2005 11:48 PM
Using fstab to mount a filesystem in multiple places cav Linux - General 3 02-09-2004 02:42 PM
Remote Mounting? (Mount remote folder on local filesystem) mac_phil Linux - Networking 1 11-15-2003 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:54 PM.

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
Open Source Consulting | Domain Registration