SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I know there are lots of posts about mounting windows shares, I've read lots of them and tried their suggestions.....but I just can't get this working - and it's driving me nuts!
I have the following in my fstab file
//rookery/storage /mnt/rookery smbfs auto,users 0 0
The folder /mnt/rookery is set up so that everyone can view and modify content.
When I'm logged in as root, it works perfectly. However when I'm logged in as me (member of the user group) it doesn't work. KDE just sits there grinding its gears. However, the daft thing is, if I type
smb://rookery/Storage
into the file browser, it works fine.
I've changing the fstab entries to //192.168.1.5/storage, I've tried userS and user, I've tried auto and noauto, NOTHING SEEMS TO WORK.
I've set SMBMNT and SMBMOUNT to be SUID, and it still doesn't work.
I have Samba set up and working OK, I can connect to the Slack box from WinXP, browse files and also write files, so I don't think there are any problems there.
I know it's a bit strange wanting to mount a windows share on a linux box, but my network storage device (a TeraStation) shows up as a Windows Shared drive and so I need to mount it as a folder on my linux box to be able to access it.
albhaf,
No, the share can be accessed as a guest. If I type
smb://rookery/Storage
into the file browser, it works fine without a username and password.
Also, the entry in the fstab file works when I'm logged in as root, but not as me (user account)
I've changed the fstab file entry to
//rookery/storage /mnt/rookery smbfs username=guest,password="" 0 0
and that mounts the share automatically at boot up. Its even mounted when I log in using my user account......YAY
BUT........as user, I can't write to the network drive.
As root, I set the mount mount /mnt/rookery so that owner, group & others all have view and modify access rights. However, when I log in as user the access rights are changed so that only owner as view and modify rights, group and other can view the files.
The plot thickens....it looks like the access rights for the mount point /mnt/rookery are changing depending who is logged in. If you're root then everything is ok, if you're a user then you're stuffed!
Is it the default behaviour not to allow users to write to SMB network shares?
Thank you for your help. I'll try out your suggestion as soon as I can. I'm away from my Slack Box at the moment and won't be able to try for a another week. ;(
I've tried changing my fstab file to include user and still no luck. I've tried users as well and that doesnt work either.
I get the impression there is somthing more fundamentally wrong than the entry in the fstab file. I think the problem is with the persissions on the mount point /mnt/rookery.
I set up access so that everyone can read and write to the folder, but when I change from root to a user account the persissions have been changed.
Does anyone know why the permissions on a mount point change depending on who's logged on?
Logged in as root:
mount point /mnt/rookery has permissions of drwxr-xr-x
I unmount the mount point and change the permissions to drwxrwxrwx
I then remount the mount point and after a few seconds the permissions change to drwxr-xr-x
What's going on? What can be changing the permissions of the mount point?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.