[Samba] File permission problem

fluibgwef at netscape.net fluibgwef at netscape.net
Fri Sep 9 15:46:43 GMT 2005

Hi Mogens, 
I'll try more during the week-end but I am sorry all this is not very clear to me (not your fault). 
And I cannot reply directly to the news group, I have to go to the crappy netscape mail thing to send this... 

Anyway, see below. 

Thanks again, 
Mogens Kjaer wrote:
> fluibgwef at netscape.net wrote:
> ... chaotic quote removed ...
Well it is chaotic because I like to answer inline but OK ;-)

> testparm lists section [data1], [data2], and [data3], but
> they are not listed under services definitions?
see below 
> How many users do you actually have? Do you have
> any files under /home/user1, /home/user2, etc. for
> these users?
currently: 1 active user: myself (uid 500) , the login which I use for samba and for the linux box itself to work on it. One inactive user (my wife ;-) uid 501) In the future I want more users (my kids are getting bigger :-). I have a "users" group (gid 100? I suppose). 
But I want to share the /data1 etc. only with 1 user (me), this is more important and immediately urgent than the homes directory. 
> If the owner of these files are not set correctly,
> you should find the uid and gid in the /etc/passwd
> file for these users and do a:
> chown -R uid1.gid1 /home/user1

Thank you, but what about the /data1,2,3 ? by whom should they be owned and in which group should they be for all this to work? This I don't understand. 

> I guess that swat has changed the global settings
> for create and directory mask, but you still have
> to change the settings for the [homes] section.
swat did not change much - or I use it wrongly. 

the real testparm output, I forgot some parts before: 

p1g:/ # testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[data1]"
Processing section "[data2]"
Processing section "[data3]"
Processing section "[fun_data]"
Loaded services file OK.
Press enter to see a dump of your service definitions

# Global parameters
        workgroup = HOME
        netbios name = xxxxxxxxxxxx
        server string = xxxxxxx
        interfaces = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        update encrypted = Yes
        map to guest = Bad Password
        guest account = ftp
        log level = 2
        log file = /var/log/samba/client_log.%m
        max log size = 500
        debug hires timestamp = Yes
        time server = Yes
        os level = 1
        local master = No
        domain master = No
        wins support = Yes
        ldap suffix = dc=example,dc=com
        ldap ssl = no
        template homedir = /home/%U
        admin users = acl
        create mask = 0777
        directory mask = 0777
        veto files = /*.eml/*.nws/riched20.dll/*.{*}/

        comment = Home Directories
        path = /home/%u
        valid users = %S
        read only = No
        create mask = 0640
        directory mask = 0750

        comment = All Printers
        path = /var/tmp
        create mask = 0600
        printable = Yes
        browseable = No

        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @ntadmin, root
        force group = ntadmin
        create mask = 0664
        directory mask = 0775

        comment = data55GB
        path = /data1

        comment = data19GB
        path = /data2

        comment = data116GB
        path = /data3
        create mask = 0775
        directory mask = 0775

        comment = fun_data92GB
        path = /usr/rem_data1/
        create mask = 0775

Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

More information about the samba mailing list