SAMBA Server configuration
Question :- All user access share directory and insert
data but user can not delete data.
Server Side :-
Hostname
:- shashi.example.com
IPadd :- 192.168.0.16/24
1. Install samba package :-
yum install samba* system-config-samba
2.add client hostname and IP in
resolve.conf file :-
3.Create a sharing directory :-
mkdir
/home/data
4.Give a permission :-
Chmod 777 /home/data
Chwon test:test
/home/data
5.Create a user :-
useradd test
6.some add line in samba configuration file :-
Vim /etc/samba/smb.conf
[data]
comment = samba server
path
= /home/data
writeable
= yes
valid
users = test
create
mask = 555
directory
mask = 555
7.add user in samba.
smbpasswd -a
test
8.Now start service :-
/etc/init.d/smb start
/etc/init.d/smb restart
chkconfig smb on
9.Now access smb server from client side :-
Smb://192.168.0.16
10.log file :-
/var/log/samba/
No comments:
Post a Comment