LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba Config/Permissions (https://www.linuxquestions.org/questions/linux-networking-3/samba-config-permissions-456373/)

tntcoder 06-19-2006 06:39 PM

Samba Config/Permissions
 
Hi,

I have ran 'smbpasswd -a jack' and jack is the windows xp username that i want to have full write access to the share. When i access the share under this user, i have write/read access, but i cannot view all files, for example if i create a file remotly as 'root' it does not show up on the share.

Ideally what i want to do is have complete read/write to this one user on the share under windows. And also allow read only guest access, again to all files on the share. I am really confused as do how i do this. I have not created a system user 'jack' on the linux host, I simply ran smbpasswd.

So if someone could tell me what file system permissions i need, and what samba umasks e.t.c are required, for a specific user to have full access and everyone else read only guest access that would be great.

This is my samba config:

Code:

[global]
        workgroup = MYGROUP
        server string = TStorage - Samba Server
        security = SHARE
        log level = 4
        log file = /var/log/samba.%m
        max log size = 50
        server signing = auto
        preferred master = No
        domain master = No
        dns proxy = No
        ldap ssl = no
        read only = No
        case sensitive = No
        msdfs proxy = no

[drive_2]
        comment = HDD [SATA2]
        path = /mnt/media2
        create mask = 0755
        hide special files = Yes
        hide unreadable = Yes
        hide unwriteable files = Yes


Thanks very much for any help.
Jack

prozac 06-19-2006 09:54 PM

Quote:

but i cannot view all files, for example if i create a file remotly as 'root' it does not show up on the share.
IMO, this is because of

hide unwriteable files = Yes

obiviously files created by root are not writable to jack.
Quote:

Ideally what i want to do is have complete read/write to this one user on the share under windows.
you can set a umask or change the owner of every new_dir you create to jack.

Quote:

And also allow read only guest access, again to all files on the share.
set guest=yes, I suppose


All times are GMT -5. The time now is 09:23 AM.