LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 02-01-2005, 12:51 PM   #1
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Rep: Reputation: 30
mounted samba shares disappear


have suse 9.2 pro installed from dvd
have samba set up and i am using kde. most everything is default
i can browse to windows shares fine and access them completey using the smb:// protocol
when i try to mount the share however, it disappers from konqueror.
if i go to a cli and ls the folder i get an error Permission Denied.

i have used two different commands as follows and both have the same result
Code:
mount -t smbfs //windowsshare/suse /media/suse
or
smbmount //windowsshare/suse /media/suse
both times i am prompted for my password and the cli comes back. as i watch this in a konqueror window the folder /media/suse disappears and only comes back when i umount the share

my user name on my suse box is the same as on my windows box with the same password and yeah i am mounting and umounting as root (su)

any ideas?
 
Old 02-01-2005, 04:22 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
i presume the files are accessible AS root? i'd assume that you are mounting the shares with a permissions mask that will only allow root access. consequently those permissions get applied to the folder, and poof... it's no longer accesible to non root users. try adding fmask=000 and dmask=000 options temporarily to open up the permissions of the mount considerably.also try adding an /etc/fstab entry, with a "user" option, which will allow you to mount it as non root and then the share should be owned by that user, not root.
 
Old 02-02-2005, 02:19 PM   #3
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Original Poster
Rep: Reputation: 30
well, not sure where to use the dmask and fmask options. i put this line in my fstab file
Code:
//windowsshare/suse /media/suse	  smbfs      user		   0 0
but dont think it is right. when i run smbmount i have to pass it my password, where do i put that in on the fstab file?
 
Old 02-02-2005, 02:44 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
so try
Code:
//windowsshare/suse /media/suse	  smbfs      user,fmask=000,dmask=000		   0 0
this isn't very secure though... i would recommend that as a long term fix.
 
Old 02-02-2005, 02:49 PM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Here is a link to a page on 'smbmount'.
I wonder if you are seeing the mentioned bug:
Quote:
*
Mounts sometimes stop working. This is usually caused by smbmount terminating. Since smbfs needs smbmount to reconnect when the server disconnects, the mount will eventually go dead. An umount/mount normally fixes this. At least 2 ways to trigger this bug are known.
You might try as root 'rcsamba status' to see if smbd is running. I don't think that there is an 'rcsmbmount' command but you could try '/etc/rc.d/smbmount status' instead.

If you put an entry in /etc/fstab you will want to use the credential option rather than have the password in your /etc/fstab entry. The options are included inf the fstab entry after the mount point The options are also comma seperated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Non-existent network shares won't disappear evilregis Suse/Novell 2 11-11-2005 03:40 PM
Problems with mounted Samba shares Fozza Linux - Software 1 12-09-2004 04:00 PM
Can you view mounted shares inside konqueror? Thaidog Linux - General 2 09-11-2004 07:32 PM
Samba shares on Win XP disappear regorbro Linux - Software 4 02-23-2004 06:45 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM


All times are GMT -5. The time now is 06:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration