반응형
yum install samba samba-client samba-commoncp /etc/samba/smb.conf /etc/samba/smb.conf.bakvi /etc/samba/smb.conf#############################[global]workgroup = WORKGROUPserver string = Samba Server Version %vnetbios name = CENTOSmap to guest = Bad User############################### smbgroup, smbuser에게만 읽기,쓰기권한##############################[private]path = /data/sambaread only = nobrowsable = yeswritable = yesvalid user = @smbgroup, smbusercreate mask = 0664directory mask = 0775force create mode = 0664force directory mode = 0775force group = smbgroup############################### 아무나 접근 가능한 공유디렉토리 (읽기만 가능)##############################[public]path = /data/sambaread only = yesbrowsable = yesguest ok = yeswritable = no##############################groupadd smbgroupuseradd smbuser -G smbgroupsmbpasswd -a smbuser#기존사용자 그룹변경usermod -g 그룹명 사용자명usermod -g smbgroup cadman79#사용자 그룹 및 정보 확인id 사용자id cadman79mkdir -p /data/sambachmod -R 0777 samba/systemctl enable smbsystemctl enable nmbsystemctl restart smbsystemctl restart nmbfirewall-cmd --permanent --zone=public --add-service=sambafirewall-cmd --reload
출처 : http://phychode.com/dev/board/boardList.phy?&boardCode=B114&boardNum=225
'Linux > Samba&NFS' 카테고리의 다른 글
CentOS SELinux 동일한 디렉토리 http,samba 사용허가방법 (0) | 2021.01.24 |
---|---|
samba mount (0) | 2020.09.27 |
NFS (0) | 2019.10.05 |
삼바공유폴더에 실행파일을 복사했을때 실행권한(rw-)이 없을때 (0) | 2018.06.04 |
Samba SELinux 권한설정 (0) | 2018.03.28 |