LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-24-2007, 09:33 AM   #1
gjblackford
Member
 
Registered: Jul 2006
Location: Reading, UK
Distribution: Ubuntu
Posts: 68

Rep: Reputation: 15
Mount smb Share with read/write permissions


Hi,

I am trying to mount a share from my Buffalo Network drive to Linux with Read/Write Access, I have installed smb and setup the mount point in fstab, but when any user apart from root tries to access it, they only have read access, after doing some searching on the Net, I found something about having to mount it with a GUID, but I am not sure how to do this, can someone please help.

I am mounting it in fstab with the following syntax (I tried adding the rw parameter to the end, but obviously it has made no difference).

Code:
//192.168.1.200/Data /media/Data smbfs username=myuser,password=mypwd,rw 0 0

Thanks,


Gavin,
 
Old 02-24-2007, 09:37 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Try using the uid and gid options. See man mount for details.
 
Old 02-25-2007, 09:49 AM   #3
gjblackford
Member
 
Registered: Jul 2006
Location: Reading, UK
Distribution: Ubuntu
Posts: 68

Original Poster
Rep: Reputation: 15
Thanks,

I looked at the man page, but still not clear on what I need to do, I tried adding uid=username,gid=group to the end of the option in fstab, but this has made no difference.
 
Old 02-26-2007, 12:14 PM   #4
gjblackford
Member
 
Registered: Jul 2006
Location: Reading, UK
Distribution: Ubuntu
Posts: 68

Original Poster
Rep: Reputation: 15
Hi,

Found the solution all I needed to do was add the dmask=777, fmask=777 to the entries in fstab and I can write to the share with any user.

Code:
//192.168.1.200/Data /media/Data smbfs username=myuser,password=mypwd,dmask=777,fmask=777 0 0
Only problem now is whenever I write a file I get an error message saying "could not change permissions for <filename?", can idea how to resolve this

Thanks,



Gavin,
 
  


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
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
Mount samba share at boot with user write permissions Wynd Linux - Software 2 08-21-2006 11:48 PM
Why can I not write to a SAMBA share when read/write is enabled? eric m Linux - General 4 08-21-2006 09:22 PM
Example share in smb.conf doesn't work - read/write vs read only kleptophobiac Linux - Networking 0 09-01-2004 07:14 PM
How can I do an automated Read/Write SMB mount for a normal user? molear Linux - Newbie 1 07-01-2004 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration