LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-10-2010, 04:21 AM   #1
nibau
LQ Newbie
 
Registered: Aug 2010
Location: Portugal
Distribution: CentOS, Fedora
Posts: 19

Rep: Reputation: 0
CentOS 5.5 - Samba


hi there!

this is my first post in here.
i'm completely new to linux....i'm running CentOS.

I've successfully installed Samba in my machine...and i'm accessing the shares through windows xp. Every thig is ok, permissions, users, etc....but i still have a small problem....for example....i have a share called [repository]. Only root and me can write, execute and read. The others can ONLY READ.

but...when i login as root (or me) to that share, and when i create (though windows) a empty file (for example) such as a txt file, the permissions of this file aren't the same as the ones i previously set:root and me ->wrx and others->r.

So...i want to set a samba configuration that let me create files with a standard permission.

was i clear?
thanks in advanced and forgive my naivety
Francisco.
 
Old 08-10-2010, 04:29 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
If you want to keep the permissions on the samba share and its subfolders and files same, then you can use option create mask .

Code:
[share]
path = /path/to/share
write list = names separated by space
create mask = 0775
 
1 members found this post helpful.
Old 08-10-2010, 05:04 AM   #3
nibau
LQ Newbie
 
Registered: Aug 2010
Location: Portugal
Distribution: CentOS, Fedora
Posts: 19

Original Poster
Rep: Reputation: 0
hi there!
thank you very much!
it worked just great.
 
Old 08-10-2010, 05:05 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Its always pleasure to help. Great to hear it worked for you.
 
  


Reply



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
CentOS in one VirtualBox, Windows in another - can I set up Samba in the CentOS VB? ismism Linux - Newbie 10 08-08-2010 03:34 PM
samba on centos timl Fedora 6 07-30-2009 01:25 PM
samba on centos 5 alitoday Linux - Server 1 07-14-2009 03:56 PM
Samba "system-config-samba" not displaying users in Gnome GUI - CentOS 5.0 bskrakes Linux - Server 6 03-01-2009 11:59 AM
samba , xp and centos 5 cyberiapost Linux - Newbie 7 11-30-2008 01:56 PM

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

All times are GMT -5. The time now is 10:55 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
Open Source Consulting | Domain Registration