LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-26-2003, 02:42 PM   #1
pat.delaney
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
Question How to set correct file/directory permissions


I'm running a Redhat 8.0 system with samba 2.2.7
I believe I have it correctly configured with winbind to authenticate users against a NT4 style domain (Active Directory in Mixed mode).
When I run the wbinfo -u, wbinfo -g they return with users and groups.

I just don’t know the correct way to create a directory on the Linux server with the correct permissions gid's & uid's so that I can configure them as samba shares.

If I create a directory off of / …. let say /testing….. what should the permissions be set to? What owner & group should it be in??

Pat
 
Old 11-26-2003, 02:48 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

The unix file/folder owner and group should be the same as the unix user that the samba user is connecting as. So if you have unix user "pat" and smb user "pat" the owner would be "pat".
 
Old 11-30-2003, 08:57 PM   #3
pat.delaney
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I'm a bit confused... I'm using winbind and security = domain in samba so I don't have to create all the users.

I must be missing something.

???

pat
 
Old 11-30-2003, 09:11 PM   #4
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Pat, the Windows users and groups are dynamically added to the passwd and group file (it's been a while since I messed with this). You should be able to assign permissions just like a normal Unix user:

chown someuser somefile

Did you compile Samba with ACL support? Are you using a file system with ACL support?
 
Old 12-01-2003, 10:52 AM   #5
pat.delaney
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I'm not sure the users are being dynamically added at this point. I think I need something configured in the smb.conf file to auto-add the users, but I'm not sure.

I installed a Samba.rpm ver 2.2.7-security-rollup-fix

I gues what I would realy like is sample of a working smb.conf file for security=domain.

Of course I would expect any site specific info be made generic like
workgroup = <MY workgroup> and be commented out.

Thanks for any help you can provide.
 
Old 12-02-2003, 09:39 AM   #6
pat.delaney
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I can report some success. I can now log into the console of the samba server using a NT domain account. I get an error about it not having a home directory, but I can figure that one out.

I think it has something to do with the /etc/pam.d/samba file. Can someone post a working version of that file.

pat
 
  


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
File/Directory Permissions waynevnc Debian 1 05-23-2005 04:23 PM
How to permanently set permissions on all files created in a directory? BrianK Linux - General 8 06-24-2004 04:06 PM
Vsftpd changes file permissions....how to correct? 88guy Linux - Software 1 05-25-2004 05:17 PM
directory permissions incorrectly set DutchBoy Linux - Security 3 01-05-2004 09:40 AM
File and Directory permissions plasmapudding Red Hat 3 09-09-2003 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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