LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-12-2012, 02:06 PM   #1
jlucero42
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
Unhappy getting started with linux and samba


I have created a new slackware server with samba running on it.

We have user groups (purlib, admlib, crlib, etc...) created with our users assigned to different groups. Everything works great between the users in there own groups.
Now when somebody from IT copies anything in to one of the groups, it gives the folder or file the rights of the ITLIB. I try to go in from the windows workstation and change the rights and it fails!? The user has Admin rights and I even put myself in the root group.

What are we doing wrong?
 
Old 07-12-2012, 03:59 PM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

I can't tell you how to do it, but just point you to a Samba3 guide here. Maybe you find something that will help you out.

I wish you good luck

Best regards.
 
Old 07-20-2012, 10:48 AM   #3
jlucero42
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Ok. I got some help from my friend Dan B. I'm posting his email response here for all!

first, you have to know that there are three ways you can manage perms on samba: via smb.conf, unix perms, and acl perms.

smb.conf assumes that unix perms and acls are completely open. if unix perms or acls are restrictive, then you are limited by those restrictions.

unix perms are useful for setting the group inheritance, the 2 in 'chmod 2777 /path' the files under /path will all be created with same group.

acls are by far the most powerful. You'll have to read up on them. here are some examples:

# reset all facls
# setfacl -R -b /path

setfacl -d --set u::rwx,g::rwx,o::rwx /data/nmcourts_public/
setfacl -R -m u::rwx,g::rwx,o::rwx /data/nmcourts_public/

You'll have to figure out the best combination of the above to do what you want.

hope that helps a bit.
 
  


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
[SOLVED] No sound in KDE when started by startx while working fine when started by kdm/gdm arj1singh Ubuntu 2 12-14-2010 12:55 PM
Started nautilus as root....problems started Chaosbringer SUSE / openSUSE 0 11-05-2008 04:00 AM
Samba 3.0.10 and CentOS4.4 Service not Started tehfatal Linux - Server 11 04-17-2007 07:39 PM
samba server doesnt started upon boot scng Linux - Networking 2 09-09-2004 12:53 PM
Samba - getting smbd started jchim32 Linux - Networking 4 05-29-2001 07:25 AM

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

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