[opensuse] How to automount shares on samba server?
Want to automount at boot my samba shares on my FC6 server. (my home lan) Is it fstab I modify?, or where to start? Clicking "Network Browsing" does nothing. but from the konsole: ---------------------------------------------------------------------------------------- Domain=[FRANK-00] OS=[Unix] Server=[Samba 3.0.23c-2] Sharename Type Comment --------- ---- ------- store00 Disk File Directories store01 Disk File Directories Ann Disk File Directories Camillus Disk File Directories Philomena Disk File Directories Isabelle Disk File Directories IPC$ IPC IPC Service (Samba Server) Domain=[FRANK-00] OS=[Unix] Server=[Samba 3.0.23c-2] Server Comment --------- ------- Workgroup Master --------- ------- FRANK-LOCAL FRANK-00 ---------------------------------------------------------------------------- Frank -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Freitag, 22. Dezember 2006 13:16 schrieb Frank Murphy:
Want to automount at boot my samba shares on my FC6 server. (my home lan)
Is it fstab I modify?, or where to start?
install samba-client and edit /etc/samba/smbfstab Detlef -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2006-12-22 at 12:16 +0000, Frank Murphy wrote:
Want to automount at boot my samba shares on my FC6 server. (my home lan)
Is it fstab I modify?, or where to start?
Now this is for my laptop. I'm the only one useing it, so this is kind of for a single user. Start my editing /etc/auto.master and un comment the # # $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $ # # Sample auto.master file # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # For details of the format look at autofs(5). #/misc /etc/auto.misc --timeout=60 #/smb /etc/auto.smb #/misc /etc/auto.misc #/net /etc/auto.net /smb line. Then for me I had to change the auto.smb with the following patch [bpm]$ diff -wruN auto.smb /etc/auto.smb --- auto.smb 2006-12-22 08:38:31.000000000 -0600 +++ /etc/auto.smb 2006-08-09 09:55:39.000000000 -0500 @@ -5,7 +5,7 @@ # This file must be executable to work! chmod 755! key="$1" -opts="-fstype=smbfs" +opts="-fstype=cifs,credentials=/home/bpm/.credentials,rw " for P in /bin /sbin /usr/bin /usr/sbin do @@ -20,7 +20,7 @@ $SMBCLIENT -gNL $key 2>/dev/null| awk -v key="$key" -v opts="$opts" -F'|' -- ' BEGIN { ORS=""; first=1 } - /Disk/ { if (first) { print opts; first=0 }; print " \\\n\t /" $2, "://" key "/" $2 } + /Disk/ { if (first) { print opts; first=0 }; sub(/ /, "\\ ", $2); print " \\\n\t /" $2, "://" key "/" $2 } END { if (!first) print "\n"; else exit 1 } ' the important change was changing the "opts" line and the "/Disk/" line The credentials file is just a file with two lines: username=XXXXX password=ZZZZZ The last thing to do is to make sure the autofs is working: chkconfig autofs --list autofs 0:off 1:off 2:off 3:off 4:off 5:off 6:off Turn it on with chkconfig autofs on Read about cifs filetypes and the autofs system -- Brian Millett - [ Matthew Stoner (to Garibaldi), "Soul Mates"] "Hey, how about I call you an idiot in public and you can convict me for revealing state secrets." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 22 December 2006 06:16, Frank Murphy wrote:
Want to automount at boot my samba shares on my FC6 server. (my home lan)
Is it fstab I modify?, or where to start? <snip> Frank
http://www.justlinux.com/nhf/Filesystems/Mounting_smbfs_Shares_Permanently.h... is a good read to do this quickly, easily, reliably. Along with the smbclient (and smb server if you want to share from this machine to the home LAN also) as noetd by Detlef. As root, remember to add samba users on all your machines: # smbpasswd -a username rinse, lather repeat as necessary. Other useful commands that can be used in KDE and Konqueror specifically: fish://user@server/share to browse a share on a server fish://user@server/ to browse all shares on a server smb:/ to see all workgroups in your LAN smb://workgroup to see all the servers in a workgroup smb://username@server to see available shares smb://username@server/share to get a login prompt for that username/password Several ways to administer Samba also: - KDE Control Center, Internet & Network, Samba - expand the window to see all of it and login as root to rummage around. - Enable swat via YaST, Network Services, Network Service (xinetd) and then surf to http://localhost:901 and login as root. Have a Merry Christmas everyone! Even though Santa may be challenged getting the boxed set of openSUSE 10.2 down your chimney this year! Stan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Brian Millett
-
Detlef Reichelt
-
Frank Murphy
-
S Glasoe