栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

linux追加samba登陆用户

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

linux追加samba登陆用户

1.原来的配置

[dev]leef@192.168.155.7:~$ cat /etc/samba/smb.conf
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.

[global]
        workgroup = SAMbaserver string = Sambaserver Version %v
        security = user

        passdb backend = tdbsam

        printing = cups
        printcap name = cups
        load printers = yes
        cups options = raw




[homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        browseable = No
        read only = No
        wirtable = yes
        create mode = 0664
        directory mode = 0775
        inherit acls = Yes

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

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @printadmin root
        force group = @printadmin
        create mask = 0664
        directory mask = 0775

[myshare]
    comment = share for users
    browseable = yes
    writable = yes
    path = /data/home/myshare
    public = no

2.查看当前的用户

pdbedit -L

3.追加用户名

pdbedit -a newname

4.文件记录

/etc/samba/smb.conf
/etc/passwd
/etc/group
/etc/gshadow
 /etc/shadow
/etc/sudoers

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/338941.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号