Problem mounting Samba shares

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
toothandnail
Posts: 165
Joined: 20. Sep 2009, 17:30
Location: Oxfordshire, UK

Problem mounting Samba shares

Post by toothandnail »

I've got an Amahi server in my network now, mainly to test some applications for a client. Amahi is based on a Fedora 12 install. As well as a number of web-based applications, it provides file serving, using Samba.

I've been unable to get Gigolo to connect to the Amahi box. I can manually mount shares - to do so, I've added something like this to /etc/fstab:

Code: Select all

//hda/movies /home/tigger/Music cifs noauto,users,rw,user=xxxx,password=yyy   0 0
( :) user name and password have been changed....). The share will mount, but, even though users should mean that a normal user has write access, only root has write access. This is not much use for the server's intended application.

Can anyone tell me why the problem exists, and, even better, how to fix it?

Paul.
User avatar
Akuna
Salix Wizard
Posts: 1038
Joined: 14. Jun 2009, 12:25

Re: Problem mounting Samba shares

Post by Akuna »

This post from laprjns might be a help: http://www.salixos.org/forum/viewtopic.php?p=7046#p7046
Image
What really matters is where you are going, not where you come from.
toothandnail
Posts: 165
Joined: 20. Sep 2009, 17:30
Location: Oxfordshire, UK

Re: Problem mounting Samba shares

Post by toothandnail »

Akuna wrote:This post from laprjns might be a help: http://www.salixos.org/forum/viewtopic.php?p=7046#p7046
Thanks. I'll give that a try. Oddly enough, I tired Gigalo after making the first post, and it connected ok. But I still can't write to the share - for some reason, it is only giving write access to root.

I have no idea what the problem is. I can use a mount command in Vector Linux and it will mount and give a normal user write access. I can also use Gigalo in Fedora 12, which will open the share and allow normal user write access. I can't work out what is different about Salix that causes this....

Paul.
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Problem mounting Samba shares

Post by gapan »

Maybe a uid problem? Did you try specifying it in your fstab?
Image
Image
toothandnail
Posts: 165
Joined: 20. Sep 2009, 17:30
Location: Oxfordshire, UK

Re: Problem mounting Samba shares

Post by toothandnail »

gapan wrote:Maybe a uid problem? Did you try specifying it in your fstab?
:D Thanks George. Don't understand why, but adding the UID seems to have fixed it..

Now all I need is a way to automount the share (not easy, since the network isn't up when the mount command runs....).

Paul.
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Problem mounting Samba shares

Post by gapan »

Maybe as simple as

Code: Select all

sleep 120 && mount /mnt/foo
in your rc.local? Or something along those lines?
Image
Image
ron_uit_best
Posts: 32
Joined: 25. Oct 2009, 09:36
Location: Netherlands

Re: Problem mounting Samba shares

Post by ron_uit_best »

Hi,

Sorry to ask this on an old post, but it is related to this post:

I have a NFS share which is in my rc.local, but the disk is not mounted at boottime. It does mount if I give the command afterwards. So I thought to add the 'sleep 120 &&" to the line. It helps! The disk is mounted at boottime. Now the problem:
My pc boots up 120 seconds slower (logically, but I expected it to be in the background). Where can I put this command to make it run in the background (that is: sleep in the background)?

Tnx, Ron
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Problem mounting Samba shares

Post by gapan »

You can do it this way:

Code: Select all

sleep 120 && mount /mnt/foo & 
notice the "&" at the end.
Image
Image
ron_uit_best
Posts: 32
Joined: 25. Oct 2009, 09:36
Location: Netherlands

Re: Problem mounting Samba shares

Post by ron_uit_best »

That did the trick, tnx!
Post Reply