Re: SMB Permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux