怎么退出ntsysv?
答案:1 悬赏:60 手机版
解决时间 2021-05-05 04:32
- 提问者网友:送舟行
- 2021-05-04 17:41
怎么退出ntsysv?
最佳答案
- 五星知识达人网友:撞了怀
- 2021-05-04 19:18
1、相关的文件 samba-common samba服务器的主文件 samba 服务器端的软件 samba-client 客户端的软件 redhat-config-samba 图形界面的配置文件 samba-swat web配置工具 2、步骤 1)安装SAMBA服务器 (1)检测是否安装samba #rpm -qa | grep samba (2)安装:将第一张光盘放入光驱 #mount /mnt rom #cd /mnt rom/RedHat/RPMS #ls samba*.* #rpm -ivh samba-common-2.2.7a-7.9.0.i386.rpm #rpm -ivh samba-2.2.7a-7.9.0.i386.rpm #rpm -ivh samba-client-2.2.7a-7.9.0.i386.rpm #cd / #umount /mnt rom #eject 2)设置samba的密码文件 (1)成批用户密码文件的生成 #cat /etc/passwd | mksmbpasswd.sh > /etc mba/smbpasswd (2)删除一些无用的shell帐户 #vi /etc mba/smbpasswd 从1到9。 (3)设置目录和文件的权限 #chown root.root /etc mba/smbpasswd #chmod 500 /etc mba #chmod 600 /etc mba/smbpasswd #ll -d /etc mba (4)单个用户设置samba密码 #useradd wujianan #passwd wujianan #smbpasswd -a wujianan 3)启动samba服务器 #service smb start #pstree | grep mbd #smbclient -L localhost或者IP地址 4)配置samba的共享 #vi /etc mba/smb.conf [global] workgroup = workgroup server string = samba server ;hosts allow = 192.168.1. 192.168.2. 127. printcap = /etc/printcap load prints = yes printing = cups ;guest account = pcguest log file = ar/log mba/%m.log max log size = 0 安全选项 security = user(share) encrypt passwords = yes smb passwd file = /etc mba/smbpasswd ;interfaces = 192.168.12.2/24 192.168.13.2/24 dns proxy = no 设置每个用户主目录共享 [homes] comment = Home Directries browseable = no 不允许浏览共享文件夹 writeable = yes 允许写入 valid users = %s create mode = 0664 directry mode = 0775 [printers] comment = All prints path = ar/spool mba browseable = no printable = yes [doc] comment = doc path = /home/doc browseable = no writeable = no或 read only = yes guest ok = yes 示例: 要求:创建一个共享目录,所有用户都可访问,权限为只读。 #vi /etc mba/smb.conf workgroup = workgroup server string = samba server netbios name = RH9 dos charset = cp936 unix charset = cp936 secrity = share [read] comment = read path = /home/read public = yes g
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯