LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   mounted samba shares disappear (https://www.linuxquestions.org/questions/suse-opensuse-60/mounted-samba-shares-disappear-284970/)

jsmarshall85 02-01-2005 12:51 PM

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?

acid_kewpie 02-01-2005 04:22 PM

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.

jsmarshall85 02-02-2005 02:19 PM

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?

acid_kewpie 02-02-2005 02:44 PM

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.

jschiwal 02-02-2005 02:49 PM

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.


All times are GMT -5. The time now is 03:16 AM.