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 03-18-2005, 07:33 PM   #1
Registered: Nov 2004
Location: Denmark
Distribution: ArchLinux, Debian
Posts: 133

Rep: Reputation: 18
Samba upload folder won't open with 0766

I've recently reinstalled my server with Debian. When I got finished configuring Samba I realized that I couldn't reach my upload folder. If I set "create mode" to "0777" I can open it and upload just fine, but when I have my public set to 0744 (doesn't have execute too) I would like to know why I can't do the same with upload (I mean disallow execute), cause I won't give more permissions than needed.

A question while at the Samba thing. Can I make the users upload files to my upload folder but other people can't delete it?


  workgroup = linux
  server string = Samba Server %v
  log file = /var/log/samba/log.%m
  max log size = 50
  socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
  interfaces = lo eth0
  bind interfaces only = yes
  hosts allow = 192.168.
  hosts deny =
  security = share
  guest account = samba
  guest ok = yes


  comment = pub
  browseable = yes
  public = yes
  create mode = 0744
  guest ok = yes
  path = /home/samba/public
  writeable = no


  comment = upload
  browseable = yes
  public = yes
  create mode = 0766
  guest ok = yes
  path = /home/samba/upload
  writeable = yes
Old 03-19-2005, 12:57 PM   #2
Registered: Dec 2004
Location: Ohio
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
If you are using share access + guest, everyone who connects will be recognized as guest and that is most likely mapped to user nobody. (check your smbusers file for the proper mapping).

Obviously user nobody will need access to the file and neither the group nor owner is nobody it will observe the restrictions set on"other."

Execute bit operates differently on directories. It's actually directory listing capabilities. So, if you strip the bit, you will remove access to the directory. (essentially, as far as samba is concerned).

Now write, but not delete...

I suppose you could have the actual samba directory as 0777 and simply use create mode to strip the the write bit.

So force create mode 0754
and force directory mode 0755

I found it was a much nicer setup to go to PDC and allow individual groups to manipulate files, but I leave my public directy truely public.

The samba documentation should be able to answer most questions.


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 se folder after ftp upload steffa Linux - Networking 1 06-08-2005 09:40 PM
IglooFTP-PRO refuses to upload files in folder when I upload folder eBopBob Linux - Software 0 08-27-2004 06:52 AM
what folder do i upload my webpages too? pcdctr Linux - Newbie 1 07-24-2004 10:13 PM
vsftpd single upload folder RinGz Linux - Networking 2 11-13-2003 02:59 PM
how to upload files to apache folder? alexii86 Linux - Newbie 4 10-06-2003 03:05 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration