Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-26-2003, 02:42 PM
|
#1
|
LQ Newbie
Registered: Nov 2003
Posts: 4
Rep:
|
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
|
|
|
11-26-2003, 02:48 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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".
|
|
|
11-30-2003, 08:57 PM
|
#3
|
LQ Newbie
Registered: Nov 2003
Posts: 4
Original Poster
Rep:
|
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 
|
|
|
11-30-2003, 09:11 PM
|
#4
|
Member
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417
Rep:
|
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?
|
|
|
12-01-2003, 10:52 AM
|
#5
|
LQ Newbie
Registered: Nov 2003
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
12-02-2003, 09:39 AM
|
#6
|
LQ Newbie
Registered: Nov 2003
Posts: 4
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|