电子说
1. SSH
sudo aptitude install openssh-server
2. SAMBA
sudo aptitude install samba
/etc/samba/smb.conf 增加:
[homes]
comment = Home Directories
browseable = no
writable = yes
3. 添加用户:
sudo useradd -m -G mygroup -s /bin/bash user_name
sudo smbpasswd -a user_name
4. 添加 sudo 权限:
修改 /etc/sudoers ,增加:
%mygroup=ALL(ALL:ALL) ALL
或者:
sudo usermod -a -G sudo username
全部0条评论
快来发表一下你的评论吧 !