linux samba server configuration

来源:互联网 发布:手机淘宝怎样复制网址 编辑:程序博客网 时间:2024/05/17 03:58

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

 

原创粉丝点击