LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-02-2006, 01:01 PM   #1
Abyteapart
LQ Newbie
 
Registered: Oct 2006
Posts: 27

Rep: Reputation: 15
user can't mount windows share


Hello,

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.

If anyone has any suggestions......please help.

many thanks
AByteApart
 
Old 11-02-2006, 02:09 PM   #2
albhaf
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
Try replacing users with user in the fstab, it should work then.
 
Old 11-02-2006, 02:10 PM   #3
Abyteapart
LQ Newbie
 
Registered: Oct 2006
Posts: 27

Original Poster
Rep: Reputation: 15
albhaf,
Thanks for the post. Unfortunatly i've already tried that, and it didn't work. ;(
 
Old 11-02-2006, 02:22 PM   #4
albhaf
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
In that case, does the share need any username and password?
 
Old 11-02-2006, 02:36 PM   #5
Abyteapart
LQ Newbie
 
Registered: Oct 2006
Posts: 27

Original Poster
Rep: Reputation: 15
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)
 
Old 11-02-2006, 02:43 PM   #6
albhaf
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
Do you get any error message when mounting in the console or are you trying to mount it with Konqueror?
 
Old 11-02-2006, 04:43 PM   #7
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Rep: Reputation: 16
Give this a shot:

mount -t smbfs -o username=Guest //rookery/storage /mnt/rookery
 
Old 11-03-2006, 07:43 AM   #8
Abyteapart
LQ Newbie
 
Registered: Oct 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Albhaf,
I try and mount using the consol, and logged in as a user, I get an error saying "only root can mount" (or somthing like that).

If I using Konquer (and logged in as a user) I get no errors at all, it just shows an empty folder.

Dohpaz,
If I try to mount shares at the console (when logged in as a user) I just get an error saying "only root can mount".

This is really puzzling me.

Abyteapart
 
Old 11-03-2006, 09:58 AM   #9
slackamp
Member
 
Registered: Dec 2005
Distribution: slackware-current
Posts: 86

Rep: Reputation: 16
you need to make smbmnt and smbumount SUID (-rwsr-xr-x) and make sure that you have write permission to the folder your are mounting it on.

so after that you should be using smbmnt to mount and smbumount to unmount.
 
Old 11-03-2006, 10:01 AM   #10
erickFis
Member
 
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 209

Rep: Reputation: 32
same problem here:
only root can mount and write new files to my samba share.
 
Old 11-03-2006, 12:23 PM   #11
Abyteapart
LQ Newbie
 
Registered: Oct 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Hay everyone.....

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?

Abyteapart
 
Old 11-05-2006, 06:13 AM   #12
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 172

Rep: Reputation: 21
This is in right direction
//rookery/storage /mnt/rookery smbfs username=guest,password="" 0 0

add user
//rookery/storage /mnt/rookery smbfs user,username=guest,password="" 0 0

Also, before mount, check with ls -l /mnt the permission on the folders.
 
Old 11-06-2006, 01:18 AM   #13
Abyteapart
LQ Newbie
 
Registered: Oct 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Ludist,

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. ;(

Abyteapart
 
Old 11-12-2006, 11:19 AM   #14
Abyteapart
LQ Newbie
 
Registered: Oct 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Hello all,

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?

Thanks
Abyteapart
 
Old 11-12-2006, 11:35 AM   #15
Abyteapart
LQ Newbie
 
Registered: Oct 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Just found some more interesting information.

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?

Thanks
Abyteapart
 
  


Reply



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
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
Mount samba share at boot with user write permissions Wynd Linux - Software 2 08-21-2006 11:48 PM
when trying to mount a windows share I'm getting jcombs_31 Slackware 11 01-04-2006 06:48 PM
Mount SMB Share from user account jeopardyracing Linux - Newbie 3 12-03-2004 05:04 PM
can't mount smb share as non-root user nixinbarrie Linux - Networking 5 09-27-2004 08:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:58 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration