G'day all Is it possible to get fstab to mount a samba share? I see it can mount nfs shares, but I need to know about samba shares Thanks
Freitag den 20.09.2002 um 8:55 CEST +0200, schrieb cj:> G'day all > Is it possible to get fstab to mount a samba share?Sure.> I see it can mount nfs shares, but I need to know about samba sharesTry smbfs. On Linux you have to setup a kernel with smb filesystem support. You need smbmount smbumount, which are in the "smbfs" packet on debian systems. The packet information give me the hint, that this is out of the samba source. /etc/fstab: //awek-ref/Barzen /mnt/awek-ref/barzen smbfs rw,username=xxxxxx,password=xxxxxxxxxx,uid=1000,gid=1000 -- Frank Matthie? fm@Microdata-pos.de
Hi On Friday 20 September 2002 09:52, Frank Matthie? wrote:> > Try smbfs. On Linux you have to setup a kernel with smb > filesystem support. You need smbmount smbumount, which are in the > "smbfs" packet on debian systems. > > The packet information give me the hint, that this is out of the > samba source.What do you mean by this? I really do not understand. A few days ago I compiled samba-2.2.5. There is a configure option to also compile smbmount.> > /etc/fstab: > //awek-ref/Barzen /mnt/awek-ref/barzen smbfs > rw,username=xxxxxx,password=xxxxxxxxxx,uid=1000,gid=1000This may cause problems. At startup "mount -a" is called before network is up (at least in some distributions). So better add the "noauto"-option and mount the specific share later (after network coming up) by a separate skript. Quick and dirty way for KDE-users: add desktop icon of type "drive" pointing to this fstab entry. greetings Axel
cj (cj@itonsite.com.au) wrote*:> >G'day all >Is it possible to get fstab to mount a samba share? >I see it can mount nfs shares, but I need to know about samba shares > >Thanks ># In /etc/fstab # To mount a public share //ocicat/Public /mnt/Public smbfs username=pcguest,password=password,uid=pcguest,gid=users,rw # To mount a private share //ocicat/home /home/bob/Data smbfs noauto,username=bob,password=password,uid=bob,gid=users,rw # In /etc/profile # To login if [ -e ~/Data ]; then sudo mount ~/Data fi # To logout trap "sudo /bin/umount ~/Data; /usr/bin/clear" EXIT # In /etc/sudoers bob ALL=(ALL) NOPASSWD: ALL In my case, this isn't a problem but you don't want to do this in production because of security. I'm trying to figure out how to do this without having to use sudo. I hope this is what you were asking. -- Bob Crandell Assured Computing When you need to be sure. Voice 541-689-9159 FAX 240-371-7237 bob@assuredcomp.com www.assuredcomp.com Eugene, Or. 97402