Visit Jeremy's Blog.
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 07-30-2006, 09:19 AM   #1
Registered: Mar 2006
Distribution: openSUSE 10.2
Posts: 47

Rep: Reputation: 15
Shared folder permissions

How should I set permissions on a folder that I want to share across my local network? I have activated Samba and added the folder to the shared folders list. I can see the folder from my WinXP machine but when I click on it to open it I get asked a username and password. What should this be? Should I create a special user with permission on the folder on the Linux box? I tried entering my login info (username and password) that I use to log into my Linux machine but it is rejected.

This is probably a very stupid question but I am still learning.

Thank you.
Old 07-30-2006, 09:43 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
You could use the "smbpasswd" program to create a samba user and password. The folder should also have permissions set so that the owner can read & write to it.

A lot depends on how samba is configured. You could as an alternative use ForceOwner and ForceGroup in your smb.conf file. The details should be in /usr/share/doc/packages/samba/Samba3ByExample.pdf. ( Might be a postscript file on your system ). Look at example 2.2. This is what you could do if you want this share accessible by everyone.

If you want everyone to be able to read files in this share, but not write to them, then look at example 2.1.
It has what may be the simplest smb.conf that you have ever seen!
      workgroup = MIDEARTH
      security = SHARE
      path = /plans
      readonly = Yes
      guest ok = Yes
Your share & directory will probably have a different name. The modes of the directory should be 0755 in this example. Your /etc/hosts file should contain your servers name and IP address, and every host should be configured for the same workgroup (MIDEARTH in this example) and be in the same network segment, e.g. 192.168.0/24.

Good Luck!

Last edited by jschiwal; 07-30-2006 at 09:45 AM.


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
how can i move this folder of music from /root/Shared to /home/coffee/Shared ? thx mr_coffee Linux - Newbie 9 01-23-2006 06:50 AM
Samba Public shared Folder will not hold permissions xzerros Linux - Networking 12 09-26-2005 09:25 AM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM
shared folder permissions for SFTP jawilson Linux - Networking 1 07-07-2005 02:42 PM
Cant add folder into my shared folder? amer_58 Linux - Newbie 2 04-03-2005 11:35 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:30 AM.

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