Page 1 of 1
Samba share access

Posted:
Sep 6th, '12, 19:06
by msdobrescu
Hello,
I have a NAS-like system, upgraded up to date (even from the Mandriva 2010 up to Mageia 2).
It have always worked fine, but now I have a situation I don't understand.
I cant' access Samba shares from another computer, even with right credentials, until I log on the system.
What should I do to fix this?
Thank you.
Re: Samba share access

Posted:
Sep 10th, '12, 21:06
by msdobrescu
As I have changed the fstab and configured the KDE to automount the drives, I have had an issue: the automounting was available after KDE logon.
So, I have added these to my rc.local:
/usr/bin/udisks --mount /dev/sdb1
/usr/bin/udisks --mount /dev/sdc1
/usr/bin/udisks --mount /dev/sdd2
/usr/bin/udisks --mount /dev/sde1
Is there a better solution?
Thanks
Re: Samba share access

Posted:
Sep 11th, '12, 21:19
by doktor5000
msdobrescu wrote:As I have changed the fstab and configured the KDE to automount the drives, I have had an issue: the automounting was available after KDE logon.
Where and how did you setup automounting of the drives in KDE? And what is the problem with automounting taking place after the logon?
As the drives get mounted with the rights of the user when automounted after logon. What do you want to achieve actually?
Re: Samba share access

Posted:
Sep 12th, '12, 21:46
by msdobrescu
doktor5000 wrote:msdobrescu wrote:As I have changed the fstab and configured the KDE to automount the drives, I have had an issue: the automounting was available after KDE logon.
Where and how did you setup automounting of the drives in KDE? And what is the problem with automounting taking place after the logon?
As the drives get mounted with the rights of the user when automounted after logon. What do you want to achieve actually?
Hello,
Sorry to reply that late...
I have set the automounting in the KDE settings panel, "Removable devices" applet.
The system is a home server, so I don't want to log on it under KDE, I just start it and I expect it to serve me the shares. The "Removable devices" applet does it after KDE logon only.
Re: Samba share access

Posted:
Sep 12th, '12, 22:12
by doktor5000
So why do you set it up like that at all? Sounds quite confusing to me ...
Why not just put them in fstab, but pay attention to
https://wiki.mageia.org/en/Mageia_2_Err ... t_in_fstab
Re: Samba share access

Posted:
Sep 12th, '12, 22:17
by msdobrescu
Indeed, something like that bug hit me, though I don't have webdav.
That setup, I have, needs to be generic, because I have 4 hot swappable bays on that machine.
Re: Samba share access

Posted:
Sep 12th, '12, 22:19
by doktor5000
msdobrescu wrote:That setup, I have, needs to be generic, because I have 4 hot swappable bays on that machine.
Sorry, i don't understand what you're trying to tell here, please rephrase.
Re: Samba share access

Posted:
Sep 12th, '12, 22:28
by msdobrescu
If I have to mount a disk, having one partition, or to change it to another disk, also having one partition, without making the OS complaining at boot time, I need to avoid fstab. Sometimes, the disk might be missing also.
I try to make the system to mount whatever is there, and share it over Samba.
Re: Samba share access

Posted:
Sep 12th, '12, 22:38
by doktor5000
Understood even less now ...