* http://www.samba.org * [[mount]] :https://help.ubuntu.com/community/FuseSmb http://en.wikipedia.org/wiki/Server_Message_Block#Versions_and_implementations net user guest /active:yes * http://www.lefinnois.net/wp/index.php/tag/cifs/ ===== TODO ====== "Une erreur s'est produite lord du partage de Documents. Le mappeur de point final n'a plus de point final disponible.La ressource partagée n'était pas encore créée." * http://www.commentcamarche.net/forum/affich-24053623-rendre-partageable-un-dossier ubuntu i386 hangs on "starting netbios" I am also affected by this issue trying to fix it from a chroot env * http://forum.ubuntu-fr.org/viewtopic.php?id=898821 * http://ubuntuforums.org/showthread.php?p=12038954#post12038954 ===== SETUP ===== ==== Setup : Client ==== sudo apt-get install smbfs smbclient mkdir ~/mnt/smb && sudo smbmount \\\\localhost\\pub ${HOME}/mnt/smb mnt=${HOME}/mnt/tmp ; mkdir -p "${mnt}" && smbmount \\\\localhost\\pub ${mnt} sudo smbpasswd -a ${USER} mnt=${HOME}/mnt/smb/localhost/$USER ; mkdir -p "${mnt}" && sudo smbmount //localhost/$USER ${mnt} mount.cifs: permission denied: no match for /home/rzr/mnt/smb/localhost/rzr found in /etc/fstab ==== Setup : Server ==== sudo apt-get install smbclient sudo aptitude reinstall samba # sudo smbtree -h mkdir -p "${HOME}/mnt/public" smbmount "\\\\${HOSTNAME}\\public" "${HOME}/mnt/public" sudo systemctl stop smbd sudo eject && sudo eject -t sudo mkdir -p /mnt/dev/cdrom sudo mount /dev/cdrom /mnt/dev/cdrom strings /mnt/dev/cdrom/VIDEO_TS/VIDEO_TS.IFO # DVDVIDEO-VMG \n title # sudo dvdfs -o device=/dev/sr0 /mnt/dvd sudo zile /etc/samba/smb.conf [cdrom] ;# sudo dvdfs -o device=/dev/sr0 /mnt/fuse ;#preexec = sudo /usr/local/bin/dvd.sh ;#postexec = sudo /usr/local/bin/dvd.sh comment = CDR path = /mnt/dev/cdrom public = yes writable = no printable = no [public] path = /tmp/public public = yes writable = no printable = no sudo systemctl restart smbd sudo systemctl status smbd mkdir -p "$HOME/mnt/cifs" sudo mount -t cifs \\\\$HOSTNAME\\cdrom "$HOME/mnt/cifs" grep "DVDVIDEO-VMG" "$HOME/mnt/cifs/VIDEO_TS/VIDEO_TS.IFO"
#!/bin/sh
sudo mount /dev/cdrom /mnt/dev/cdrom

strings /mnt/dev/cdrom/VIDEO_TS/VIDEO_TS.IFO ||:

mnt=/mnt/fuse
sudo mkdir $mnt
sudo dvdfs  -o device=/dev/sr0  $mnt
===== Errors ==== ==== WARNING: no network interfaces found ==== smbtree -h WARNING: no network interfaces found * https://bugs.launchpad.net/ubuntu/+source/samba/+bug/180493/comments/12 * http://www.openprotium.org/tiki-view_forum_thread.php?forumId=1&comments_parentId=40&comments_maxComments=1&comments_style=commentStyle_threaded%22 ==== Error : Text file busy ==== rm FILE rm: cannot remove `FILE:' Text file busy http://www.ussg.iu.edu/hypermail/linux/kernel/0602.1/2395.html ==== Error DFS ? ==== smbmount -o username=user%pass //localhost/local /mnt/smb # Mounting the DFS root for domain not implemented yet # No ip address specified and hostname not found Fixed: smbmount //localhost/local /mnt/smb -o username=$user%$pass ==== Error: SystemD ==== "Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked." ==== Error : "mount: " "cannot mount" "read-only." ==== sudo apt-get install -y cifs-utils * https://askubuntu.com/questions/1113874/mount-t-cifs-results-in-cannot-mount-readonly-error ==== cifs_mount failed w/return code = -113 ==== [1064687.065244] CIFS: Attempting to mount \\192.168.1.42\public [1064687.069027] CIFS: VFS: Error connecting to socket. Aborting operation. [1064687.075877] CIFS: VFS: cifs_mount failed w/return code = -113 # (Error NT_STATUS_HOST_UNREACHABLE) * https://unix.stackexchange.com/questions/782654/why-does-debian-ship-a-preconfigured-firewall ===== SMB / Net Bios / SAMBA / Server Message Block ===== [[Reference]] : http://frigo.vaboofer.com/oreilly2/using_samba/ user/workgroup%password ### Samba for [[Linux]] sudo apt-get install samba smbclient # gnosamba sudo dpkg-reconfigure samba sudo zile /etc/samba/smb.conf [[public]] comment = Public Stuff path = /home/public public = yes writable = yes printable = no write list = @staff [[homes]] comment = Home Directories browseable = no read only = no # yes create mask = 0700 directory mask = 0700 # /etc/samba/passdb.tdb # zile /etc/samba/smbpasswd smbpasswd smbpasswd username /etc/init.d/samba restart username Logs to w98 and browse linux host, and can create his dirs # or on linux : mkdir -p ${HOME}/mnt/${USER} smbmount \\\\${REMOTE}\\${USER} ${HOME}/mnt/${USER} SAMR connection to machine 127.0.0.1 failed. Error was NT_STATUS_ACCESS_DENIED, but LANMAN password changes are disabled === misc === on W2000 : mount -t smbfs -o username=administrateur,password='adminpass' //teuz/e$ /mnt/smb/teuz/home With a [[FireWall]] * A input -i eth0 -p tcp -m tcp --dport -j ACCEPT http://listes.tice.ac-caen.fr/pipermail/se3-devel/2004-October/000295.html ==== print ==== Printing to a Windows (samba) Share from Debian: * http://blogs.cocoondev.org/michaelm/archives/002058.html Perhaps someone might find this useful... To connect to a share printer via samba, one needs to ensure that the following packages plus any required dependencies are installed. (Under debian use apt-get to install them) cupsys cupsys-client cupsys-bsd One might need other 'Common Unix Priniting System' (CUPS) related libraries as well , not sure. Via your web browser, connect to local host port: 631, ie http://localhost:631/admin From there one can add printers using the cups web frontend. Click on "Add a printer" Choose the device, in this case "windows printer via samba" Choose the device URL: in my case I had to type in my windows NT_domain plus user and password: smb://user:pass@nt_domain/server/sharename Now choose the 'make' of your printer (in my case 'HP') and choose the model from the given list. If all went well, a successfully installed message should be displayed. Click on the 'Print Test Page', to confirm the that the printer is working. ==== [[FireWall]] on [[Windows]] share ==== smb://192.168.0.110/incoming smbtree ELABO \\BENJ madneom cli_full_connection: failed to connect to BENJ<20> (0.0.0.0) ==== ERRORS ==== "mkdir: cannot create directory" "Permission denied" lspro duo [ 6463.205484] CIFS VFS: cifs_mount failed w/return code = -22 Mappeur de point final ?? http://support.microsoft.com/kb/839880/fr ==== MISC ==== sudo apt-get install swat # http://localhost:901 * http://smb4k.berlios.de/ ==== MORE ==== @TaG: ProtocoL {{https://p.twimg.com/AwGgVAyCEAELA3w.jpg:large}} @TaG: [[FileSystem]] [[Network]] [[NFS]] [[CIFS]] [[Samba]] RaiD MounT

Yajaira Damelo from Suivan Kong on Vimeo.