Re: SMB Permissions



David Frascone wrote on Tuesday 31 July 2007:

/media (rw to me and my wife, ro for guests)
/public (rw to me and my wife, ro for guests)
/private (rw to me and my wife, no other access)

And, normal (rw) to owners of /home/USER.

1) How do I implement a "guest" account? Make a third account?

Samba already knows the concept of a "guest". All you have to do is tell
samba, who guest actually is. You can do this in the [global] section
with

guest account = nobody

2) Is there any way to have both accounts (mine and my wife) create
files with permissions 777 when we write to shared space, but normal
permissions (700) when we write to our home directories?

First, the special section name [homes] will create a service for every
user pointing to the user's home directory. That is the easiest way to
make homes sharable. You access this share with \\hostname\username.
Type "man smb.conf" and look for "The [homes] section".

The [public] section might look something like this. This is a
configuration I use for my "public" share.

[public]
comment = Some public data
path = /data/public
read only = yes
guest ok = yes
write list = me wife
inherit owner = yes
create mask = 664
force create mode = 664 # change to match your need
force directory mode = 775 # change to match your need
# force group = trusted # maybe you want this
browseable = yes

--
bye,
Adalbert

Why bother building any more nuclear warheads until we use the ones we
have?

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • My call to Scott
    ... from my right were my wife, a local politician, a bishop, the guest-of- ... honor's wife, the guest of honor, and the older gentleman who was ... have suggested in jest that the language Scott uses on RSA is all the ...
    (rec.skiing.alpine)
  • smb startup
    ... comment = Home Directories ... force group = nobody ... guest only = yes ...
    (freebsd-questions)
  • Re: 100 years
    ... >> I was amused once to hear my wife tell a guest ... >> refer to any time between 1745 and the ... My grandson constantly tries to pin me down to specifics when I do that:) ...
    (soc.culture.scottish)
  • Help needed with IE - Windows XP Pro
    ... different users set-up, myself, my wife and a guest. ... My wifes and the guest account works ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Jay Leno Increasing Lead in Late-Night
    ... Leno makes me cringe, and I only record the show if there's a guest I think ... my wife would like to see, e.g., Jimmy Smits the other night. ...
    (alt.fan.letterman)