Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-21-2006, 11:18 PM   #1
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
Mount samba share at boot with user write permissions


I have Slackware current set to mount all samba shares at boot (mount -a -t smbfs). One mounts in my home directory, which I want to be able to write to as my user. However, I can only write to it as root. How can I make it r/w for the user?
Old 08-21-2006, 11:47 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Use the "uid=" mount option. You can use a username is well instead of a uid number.
It may be better to use the noauto option in you fstab and mount it latter manually. That way the boot process won't hang if the target share is missing.
Old 08-21-2006, 11:48 PM   #3
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
The default permission set for smbmount is probably 755. You need to options to change the permissions used by smbmount: -o dmask=775,fmask=664

This will mount it writable by the group as well as user. Change the permission mask to 777/666 to allow the world to write to the share.


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
SAMBA - VFAT local mount for all user write access... dolvmin Linux - Software 13 12-21-2006 03:50 PM
How do I mount a samba directory with write permissions? xerogravity Linux - Newbie 7 12-05-2004 01:43 PM
samba share mount on boot anthjaz Linux - Software 4 11-04-2003 04:56 PM
still problems with write permissions samba share pepijn Linux - Software 1 10-14-2003 04:38 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:57 PM.

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