# A sample share for sharing your CD-ROM with others.
[cdrom]
comment = Samba server's CD-ROM
read only = yes
locking = no
path = /cdrom
guest ok = yes
# The next two parameters show how to auto-mount a CD-ROM when the cdrom share is accesed. For this to work /etc/fstab #must contain an entry like this:
/dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
# The CD-ROM gets unmounted automatically after the connection to the
#If you don't want to use auto-mounting/unmounting make sure the CD is mounted on /cdrom
preexec = /bin/mount /cdrom
postexec = /bin/umount /cdrom
NB:_ tested on ubuntu 10.04
Friday, January 21, 2011
Wednesday, January 19, 2011
How to set up an automated login using smbclient ?
Ex:-
celsius@gmladmin:~$ smbclient -A samba_credentials //192.168.0.102/scans
Domain=[GIS5] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \>
here samba_credentials is a file which contains the user account information.
celsius@gmladmin:~$ cat samba_credentials
username = ************
password = ************
celsius@gmladmin:~$ smbclient -A samba_credentials //192.168.0.102/scans
Domain=[GIS5] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \>
here samba_credentials is a file which contains the user account information.
celsius@gmladmin:~$ cat samba_credentials
username = ************
password = ************
Thursday, January 13, 2011
smbget example:-
smbget:-
it is very similar in function to wget.
Ex:-
celsius@gmladmin:~$ smbget -u administrator smb://192.168.0.102/scans/T.tif
Password for scans at 192.168.0.102:
it is very similar in function to wget.
Ex:-
celsius@gmladmin:~$ smbget -u administrator smb://192.168.0.102/scans/T.tif
Password for scans at 192.168.0.102:
Thursday, January 6, 2011
smbtar example:-
smbtar -v -s 192.168.0.92 -a -x programs -u administrator -p **** -t irfan.tar
-a reset archive bit mode
-s Specify PC Server
-x Specify PC Share
-u Specify User Name
-p Specify PC Password
-t Specify Tape device /archive file
-v verbose mode
-a reset archive bit mode
-s
-x
-u
-p
-t
-v verbose mode
Tuesday, January 4, 2011
Make samba follow symlink outside share
O.S --- Ubuntu 10.04 LTS
celsius@gmladmin:~/myshare$ /usr/sbin/smbd --version
Version 3.4.7
[myshare]
follow symlinks = yes
wide links = yes
path = /home/celsius/myshare
valid users = celsius
read only = no
create mask = 0760
[global]
# your addition
unix extensions = no
security = user
see:- http://unix.stackexchange.com/questions/5120/make-samba-follow-symlink-outside-share
celsius@gmladmin:~/myshare$ /usr/sbin/smbd --version
Version 3.4.7
[myshare]
follow symlinks = yes
wide links = yes
path = /home/celsius/myshare
valid users = celsius
read only = no
create mask = 0760
[global]
# your addition
unix extensions = no
security = user
see:- http://unix.stackexchange.com/questions/5120/make-samba-follow-symlink-outside-share
Subscribe to:
Comments (Atom)