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 |
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-2007, 09:33 AM
|
#1
|
Member
Registered: Jul 2006
Location: Reading, UK
Distribution: Ubuntu
Posts: 68
Rep:
|
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,
|
|
|
02-24-2007, 09:37 AM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Try using the uid and gid options. See man mount for details.
|
|
|
02-25-2007, 09:49 AM
|
#3
|
Member
Registered: Jul 2006
Location: Reading, UK
Distribution: Ubuntu
Posts: 68
Original Poster
Rep:
|
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.
|
|
|
02-26-2007, 12:14 PM
|
#4
|
Member
Registered: Jul 2006
Location: Reading, UK
Distribution: Ubuntu
Posts: 68
Original Poster
Rep:
|
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,
|
|
|
All times are GMT -5. The time now is 01:31 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
|
|