Welcome to the most active Linux Forum on the web.
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 02-06-2006, 07:11 PM   #1
Registered: Jun 2003
Distribution: Arch -
Posts: 186

Rep: Reputation: 30
cannot delete any file of other users (samba question)

Hi all,

I cant figure out, how can i make a smb.conf to block the user to delete the file/folders of the other users. Like this example:

-The user John cannot delete any file in the folder of user Mary.

This is possible?

my smb.conf is:
        unix charset = iso8859-1
        display charset = cp850
        workgroup = MESSIAS
        netbios name = Users
        server string = Samba Server
        interfaces = eth0
        bind interfaces only = Yes
        log level = 7
        log file = /var/log/samba.%m
        max log size = 100
        time server = Yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        invalid users = root, nobody, @adm, adm
        veto files = /*.mp3/*.wmv/*.wma/*.ogg/
        follow symlinks = No

#this is the home of users, like this -> /home/john
        comment = Linux
        path = /home
        invalid users = root, nobody, @adm
        read only = No
        public = no
        writable = yes
        inherit permissions = yes

Last edited by eduac; 02-07-2006 at 04:12 AM.
Old 02-06-2006, 09:42 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
Samba can't override the operating system permissions. So if John can't delete files in /home/mary when logged in at a console then he also can't delete files via samba.

There are exceptions - I think you could map John's samba account to a local account with rights to delete Mary's files, but your conf file won't do that. I'm also assuming that you use "security = user" since I don't use other settings.

Last edited by gilead; 02-06-2006 at 09:47 PM.
Old 02-07-2006, 04:11 AM   #3
Registered: Jun 2003
Distribution: Arch -
Posts: 186

Original Poster
Rep: Reputation: 30
im confused...

how can i map the user account to local account?


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 i delete all the users except...... wangjinyi Linux - Security 10 10-23-2005 10:04 PM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 03:46 AM
VSFTP - Local users can delete any file! Help! joelf Linux - Security 8 02-05-2004 01:10 AM
Samba when I delete the original file sometimes deletes backup ewlnxnewB Linux - Newbie 6 11-20-2003 02:30 AM
samba file share with windows users Peds222 Linux - Software 6 08-22-2003 01:07 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:56 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