pythontr.com
aptitude update && aptitude full-upgrade
adduser --no-create-home --shell /bin/false --disabled-password kullanici smbpasswd -a kullanici # bütün Samba kullanıcı klasörleri, aynı noktada toplanabilir mkdir -p /home/data/sambadata/kullanici chown kullanici: /home/data/sambadata/kullanici
smbpasswd -x kullanici
smbpasswd kullanici
vim /etc/samba/smb.conf [kullanici_paylasim_adi] path = /home/data/sambadata/kullanici valid users = kullanici, yetkili1, yetkili2 write list = kullanici read list = yetkili1, yetkili2 writeable = yes create mask = 0744 directory mask = 0755
smbclient -U kullanici -L localhost
smbclient -U kullanici //localhost/paylasim_adi
smbclient -U xxxx //localhost/xxxx -c 'cd /home/boran/scripts/rrr;put test.txt'
smbclient //servername/share -A /home/husonet/.smbclient -c "cd backup; lcd /home/husonet/files; prompt; recurse; mput *; exit;"
mkdir -p /home/husonet/samba/samba1 vim /home/husonet/samba/samba1.crt username=husonet password=parola chmod 600 /home/husonet/samba/samba1.crt vim .smbcredentials username=pythontr password=***** # root olarak mount -t cifs -o credentials=/home/pythontr/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 //10.100.7.100/pythontr /mnt/backup chmod 600 /home/husonet/samba/smbcredentials
vim /etc/samba/smb.conf wins support = yes vim /etc/dhcp3/dhcpd.conf option netbios-name-servers 192.168.1.1;
vim /etc/samba/smb.conf socket options = TCP_NODELAY
ACCEPT loc fw icmp 8 ACCEPT loc fw udp 137:138 ACCEPT loc fw tcp 139,445
Yorumlar