Link to home
Start Free TrialLog in
Avatar of tncbbthositg
tncbbthositg

asked on

Mount SMB share on startup

Hey folks,

      I'm fairly new to linux and I have a problem.  I'm running FC2 an two PCs, XP pro on 1, and 2000 on another.  I set up an SMB share on Linux1 and I can access it with XP1 and 20001.

      On linux2, if I use smb client I have read/write access but if I mount the smb share, I only have read/execute.  What's going on?

I would like to mount the smb share on start up with 777 permissions.

Thanks for your help,
TNC
Avatar of tncbbthositg
tncbbthositg

ASKER

Nevermind

I had to add dmask and fmask and it's working fine now (except that I cannot delete)

Please PAQ and refund

Thanks,
TNC
//server/share    /mnt/dir   smbfs   auto,rw,username=user,password=xxx  0 0
Open your smb.conf file

under the share folder put this line

force directory mode = 777

Thanks,

Avtar
Don't forget to set the username/group and permissions on the directory to which you are mounting the share(s). Setting permissions in the smb.conf file is only half the story.
ASKER CERTIFIED SOLUTION
Avatar of CetusMOD
CetusMOD
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial