LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-17-2005, 10:51 AM   #1
joshnya
Member
 
Registered: Feb 2003
Location: Boston, MA
Distribution: RedHat 9
Posts: 39

Rep: Reputation: 15
Samba Permissions - RWX for all Users


I have an FEDORA 3 box sharing out a mounted secondary 60GB drive at /mnt/share and would like to give everyone on my LAN RWX permissions to the root level directory (Share) and everything 'below' it.

I've created a user with:

useradd -d /dev/null -s /bin/false -u 123 samba

and I'm mounting the drive with :

/dev/hdd1 /mnt/test vfat auto,rw,uid=123 0 0

and the snipped /etc/samba/smb.conf file has:
[global]
.......
guest account = samba
.......

[share]
path = /mnt/share
writeable = yes
browseable = yes
valid users = nobody, samba
public = yes
create mask = 0777

but my users can not write to /mnt/share/Share or any of the sub-directories. They can browse and open the files and folders however.

chmod /mnt/share 777 leaves my ls -l /mnt/share listing as......
drwxr-xr-x

Can someone offer any advice? I'm aware of the security 'problems' with wide open drives and for the moment....I'm okay with that.

Thank you in advance......

Last edited by joshnya; 05-17-2005 at 10:53 AM.
 
Old 05-17-2005, 11:00 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,500

Rep: Reputation: 91
How about chaging the [share] like this:

[shared]
path = /mnt/win/shared
guest ok = yes
writeable = yes
create mode = 0666
directory mode = 0777
browseable = yes
public = yes

i. e. add a "create mode" line? This works fine for me on my Rh9 system in allowing all users on my LAN to read and write to /mnt/win/shared...
 
Old 05-17-2005, 11:28 AM   #3
joshnya
Member
 
Registered: Feb 2003
Location: Boston, MA
Distribution: RedHat 9
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks rylan76:

Will those chagnes to the smb.conf file automatically change the RWX permissions on all the sub-directories in the /mnt/share directory once restarting samba ?
 
  


Reply


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
smb.conf entry for rwx access by multiple users thegnu Linux - Networking 1 05-13-2005 09:24 PM
RWX permissions w/ Knoppix? suprpenguin04 Linux - General 1 11-02-2004 11:41 AM
"rwx" and "valid users" - which one has precedence? kenji1903 Linux - Networking 8 07-27-2004 10:21 AM
WinXp and Redhat Sharing RWX permissions mickboda Linux - General 1 03-14-2004 04:41 AM
Samba: How to set permissions on subfolders for different users. adewri Linux - Software 3 08-25-2003 11:01 AM


All times are GMT -5. The time now is 05:13 PM.

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