Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1520
  • Last Modified:

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
0
tncbbthositg
Asked:
tncbbthositg
1 Solution
 
tncbbthositgAuthor Commented:
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
0
 
TRobertsonCommented:
//server/share    /mnt/dir   smbfs   auto,rw,username=user,password=xxx  0 0
0
 
avtarsinghCommented:
Open your smb.conf file

under the share folder put this line

force directory mode = 777

Thanks,

Avtar
0
 
garak1357Commented:
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.
0
 
CetusMODCommented:
PAQed with points refunded (125)

CetusMOD
Community Support Moderator
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now