So -- now that we're on the subject -- what about domain controller stuff?  Is it worth messing with? <br><br>Or, should I just leave it at a few shares?  Seems like more trouble w/o any (or much) benefit.  Although, I'd sure like the shares to get auto-mounted.
<br><br><br><br><div><span class="gmail_quote">On 7/31/07, <b class="gmail_sendername">Mikkel L. Ellertson</b> <<a href="mailto:mikkel@infinity-ltd.com">mikkel@infinity-ltd.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
David Frascone wrote:<br>><br>> I have been running samba for some time, but I can't seem to get<br>> permissions right for the following:<br>><br>> My file server has two users, me and my wife.  I'd like to make 3
<br>> shares, plus a home directory:<br>><br>> /media (rw to me and my wife, ro for guests)<br>> /public (rw to me and my wife, ro for guests)<br>> /private (rw to me and my wife, no other access)<br>><br>
> And, normal (rw) to owners of /home/USER.<br>><br>> However, I run into tons of permissions problems when I create a file,<br>> and she reads it, and vice versa.<br>><br>> So, the actual questions:<br>
><br>> 1) How do I implement a "guest" account?  Make a third account?<br>> 2) Is there any way to have both accounts (mine and my wife) create<br>> files with permissions 777 when we write to shared space, but normal
<br>> permissions (700) when we write to our home directories?<br>><br>> Guess that's about it.  Thanks in advance,<br>><br>><br>1: The guest account is mapped to user nobody by default. I usualy<br>create a user pcguest and mape guest to that. I give that user a
<br>group that will be able to read the files Samba is going to share.<br>You have to be carefull, because even if Samba gives access, the<br>user and group IDs used still have to have permission to access the<br>files. (You can use force user and force group to get around this.)
<br>Samba access permissions are normally on top of the file system<br>permissions.<br><br># Uncomment this if you want a guest account, you must add this to<br>/etc/passwd<br># otherwise the user "nobody" is used
<br>  guest account = pcguest<br><br>2: You can control the permissions used by Samba on any share.<br>Running man smb.conf will show you all the different options for the<br>shares. The force create mode and force directory mode are probably
<br>the options you want.<br><br>Another way to share files is to directory owned samba works, and<br>use force user = samba on the share so that all files/directories<br>will be owned by samba. You can then use the write list = to limit
<br>writing to you and your wife. The disadvantages to this is that you<br>will not be able to tell when create the file/directory without<br>looking at the Samba logs, and you may not be able to access then<br>with your normal account when logged into the machine...
<br><br>Mikkel<br>--<br><br>  Do not meddle in the affairs of dragons,<br>for thou art crunchy and taste good with Ketchup!<br><br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com
</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>David Frascone<br><br>
Tumbleweed: Colorado Tribble.