Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
What I am trying to do is create a universal server storing everyone's home directories using Samba.
So I have 3 Fedora Core 6 computers setup:
1 Samba PDC with IDMAP
1 Samba NAS server with home directories on it
1 Samba workstation
If I mount the [homedirs] share on the NAS server from the workstation, all of the permissions lineup because of IDMAP. That was quite a struggle to do, but I did it. Now, the problem is that every time the workstation makes a write or read request, it does it under the user it was mounted using (winlogonguest). Is there a way to make it write to the file using the current user's permissions?
Here is the smb.conf entry on the NAS server:
[homedirs]
path = /nas/homedirs
browsable = no
writable = yes
read only = no
public = yes
printable = no
guest ok = yes
guest only = no
Here is the fstab entry in the workstation to mount the share:
The trick is, that all of the read/write permissions are that of the user that mounted it initially...not the user that is using it. (ex. you mount it using a guest account, if you write a new file, it is created with owner "guest") All of the permissions APPEAR correct using ls -al, but upon attempting to list a directory or access a file, it uses the "guest" permissions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.