
$ sudo yum install samba$ sudo vim /etc/samba/smb.conf[share]
path = /home/nai/yanel # 链接路径
available = yes
browseable = yes
public = yes
writable = yes$ ls -l /etc/sudoers
$ chmod 777 /etc/sudoers
$ useradd -s /bin/sh -G root gem
$ passwd gemroot ALL=(ALL) ALL
gem ALL=(ALL) ALL$ chmod 440 /etc/sudoers$ sudo touch /etc/samba/smbpasswd
$ sudo smbpasswd -a USER_NAME # 用户名


]