[root@ns1 ~]# yum install samba* -y
[root@ns1 ~]#vim /etc/samba/smb.conf
#============== Global Settings ====================
workgroup = WORKGROUP
server string = Samba Server Version %v
;netbios name = MYSERVER
;interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
[root@ns1 ~]#vim /etc/samba/smb.conf
#============== Global Settings ====================
workgroup = WORKGROUP
server string = Samba Server Version %v
;netbios name = MYSERVER
;interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
hosts allow = 192.168.50.0/24
[Saiful-samba-server]
comment = Technical Support Stuff
path =/Samba_Techsupport
browseable = yes
writable = yes
valid users = saiful,krahman,rajan
[Saiful-samba-server]
comment = Technical Support Stuff
path =/Samba_Techsupport
browseable = yes
writable = yes
valid users = saiful,krahman,rajan
[root@ns1 html]# mkdir /Samba_Techsupport
[root@ns1 /]# chmod 777 Samba_Techsupport/
[root@ns1 /]# chmod 777 Samba_Techsupport/
[root@ns1 html]# chkconfig smb on
[root@ns1 html]# /etc/init.d/smb restart
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
Samba Server Configuration for group & users :
[root@ns1 qmailadmin-1.2.3]# mkdir /support
[root@ns1 ~]# chmod 777 /support/
[root@ns1 qmailadmin-1.2.3]# mkdir /noc
[root@ns1 ~]# chmod 777 /noc/
[root@ns1 qmailadmin-1.2.3]# groupadd noc
[root@ns1 qmailadmin-1.2.3]# useradd -G noc fahim
[root@ns1 qmailadmin-1.2.3]# passwd fahim
Changing password for user fahim.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@ns1 qmailadmin-1.2.3]# smbpasswd -a fahim
New SMB password:
Retype new SMB password:
[root@ns1 qmailadmin-1.2.3]# groupadd support
[root@ns1 qmailadmin-1.2.3]# useradd -G support probal
[root@ns1 qmailadmin-1.2.3]# smbpasswd -a probal
New SMB password:
Retype new SMB password:
Added user probal.
[root@mail samba]# mount -t cifs //192.168.50.18/Samba_Techsupport /samba -o username=saiful
Password:
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
[root@ns1 html]# smbpasswd -a saiful
New SMB password:
Retype new SMB password:
Added user saiful.
[root@ns1 html]# smbpasswd -a krahmanNew SMB password:
Retype new SMB password:
Added user krahman.
[root@ns1 html]# smbpasswd -a rajanNew SMB password:
Retype new SMB password:
Added user rajan.
Samba Server Configuration for group & users :
[root@ns1 qmailadmin-1.2.3]# mkdir /support
[root@ns1 ~]# chmod 777 /support/
[root@ns1 qmailadmin-1.2.3]# mkdir /noc
[root@ns1 ~]# chmod 777 /noc/
[root@ns1 qmailadmin-1.2.3]# groupadd noc
[root@ns1 qmailadmin-1.2.3]# useradd -G noc fahim
[root@ns1 qmailadmin-1.2.3]# passwd fahim
Changing password for user fahim.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@ns1 qmailadmin-1.2.3]# smbpasswd -a fahim
New SMB password:
Retype new SMB password:
[root@ns1 qmailadmin-1.2.3]# groupadd support
[root@ns1 qmailadmin-1.2.3]# useradd -G support probal
[root@ns1 qmailadmin-1.2.3]# smbpasswd -a probal
New SMB password:
Retype new SMB password:
Added user probal.
[noc-samba-server]
comment = NOC
path =/noc
public = yes
browseable = yes
writable = yes
force group = noc
create mode = 0660
directory mode = 0770
valid users = @noc
[support-samba-server]
comment = support
path =/support
public = yes
browseable = yes
writable = yes
force group = support
comment = NOC
path =/noc
public = yes
browseable = yes
writable = yes
force group = noc
create mode = 0660
directory mode = 0770
valid users = @noc
[support-samba-server]
comment = support
path =/support
public = yes
browseable = yes
writable = yes
force group = support
create mode = 0660
directory mode = 0770
valid users = @support
valid users = @support
[root@ns1 /]# chkconfig smb on
[root@ns1 qmailadmin-1.2.3]# /etc/init.d/smb restart
Shutting down SMB services: [FAILED]
Shutting down NMB services: [FAILED]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
[root@ns1 html]# chcon -Rt samba_share_t /Samba_Techsupport/Shutting down SMB services: [FAILED]
Shutting down NMB services: [FAILED]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
Password: