LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-19-2010, 10:26 AM   #1
Aeolustw
Member
 
Registered: Jun 2009
Location: Taiwan
Distribution: Linux Debian (or CentOS)
Posts: 47

Rep: Reputation: 1
Question The files' permission of Samba Server


Samba Server version 3.25

The share directory test , the user's permission will be :::

Users can copy files into the test directory by
window's file exploer , and after copying users
can't neither delete that files nor recovery them.

How to ?

Thanks.
 
Old 01-20-2010, 07:08 PM   #2
dreamwalking
Member
 
Registered: Dec 2005
Distribution: Slackware 14
Posts: 106

Rep: Reputation: 30
I think it should be 0775 with owner the Samba user and the Samba user's group (or at least that's how I have it on my server). What you mean they cannot recover them? They cannot open them anymore, once they are in the test folder?

Check also the folder's permissions and owner.
 
1 members found this post helpful.
Old 01-26-2010, 06:14 AM   #3
Aeolustw
Member
 
Registered: Jun 2009
Location: Taiwan
Distribution: Linux Debian (or CentOS)
Posts: 47

Original Poster
Rep: Reputation: 1
Thanks for reply.
We upload our autocad .dwg file to the test folder in our company.
I want that some can't cover or delete the files after they upload the files in the test folder.
And the dwg files were just read only.
 
Old 01-26-2010, 07:06 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Your first post indicates users have read/write access in this directory, while the last post indicates that other users just need read access.

If you have a samba-doc package available it supplies "Samba3-byExample" and "Samba 3 Howto & Reference Guide" or download them from here:
www.samba.org/samba/docs/Samba3-HOWTO.pdf
www.samba.org/samba/docs/Samba3-ByExample.pdf
Your situation sounds a lot like the Drafting Office example in Samba3-ByExample. Look at section 1.2.1.

Pay attention to how the directory you share is created. For a globally writable share, you want to set the sticky bit on the directory. This will prevent one user from deleting the file of another user, which technically involves writing to the parent directory.

You can have a share set up that allows write access to one user, and allows read only access to other users, who if they aren't Linux users on the Samba server are mapped to guest on Linux & Nobody in Windows.
 
1 members found this post helpful.
  


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
samba share denies permission to random files while copying joh42231 Linux - Server 1 03-02-2009 07:29 AM
cant delete files from samba share from vista machine get permission error Elnegro8 Linux - Server 3 02-20-2009 07:17 AM
Able To Delete Files Without Permission using Samba tux75 Linux - Newbie 1 02-10-2009 06:20 PM
Samba Share Server Permission Help carlosinfl Linux - Server 6 07-16-2008 07:01 AM
Samba Server - File permission SBFree Linux - Newbie 3 11-23-2004 05:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 AM.

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