linux samba server configuration

    技术2026-04-19  0

    configure /etc/samba/smb.conf add following example section:

     

    readonly:

    [repository]        comment = Tests        inherit acls = Yes        path = /qa/konductor/repository        read only = Yes        public = yes        only guest = yes        printable = no

     

    writable to some user:

    [nsn_testeng]        comment = Tests        path = /workspace/nsn_testeng/trunk        writable = Yes        write list  = root        public = yes

     

    In linux server:

    make sure 'root' is a valid user of linux system.

     

    use:

    smbpassword -a root  #add it to samba server and configure a password for it.

     

    from windows client, use:

    net use e: //10.32.89.52/nsn_testeng ecm204 /user:root

    to mount

     

    use:

    net use * /del /y

    to delete all mount points

     

    最新回复(0)