.smbcredential file has the following permissions “-rw-------”
This entry was working fine until the date I upgraded my system.
Now this folder is not booted during boot time and when I try to do it manually I receive the following message:
username@hostname:~> mount (omitted for security)
This program is not installed setuid root - "user" CIFS mounts not supported.
username@hostname:~> sudo mount (omitted)
Password:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
This might be gid=1000 → 100, maybe just a detail/typo but try with gid=100.
If the mount works with command line then I think the network is coming on line after the mounts are run according to fstab. If the network is a few seconds slower than the execution of fstab, the mount will fail.
So create a file called after.local
and put this code in it:
#! /bin/sh
mount -a
and place it at location /etc/init.d/after.local
and make it executable with this command:
sudo chmod a+x /etc/init.d/after.local
That will make fstab re-execute at the end of the boot process: any mounts that haven’t already executed (but it should make it happen in runlevel 5 when the network is up).
The first one with the .smbcredentials do not work in the sense that I get a prompt for password that I do not want to.
while the second one with username and password works.
The .smbcredentials contents are
username=pub
password=password
I have the similar problem. It is possible to mount shared folder using:
mount.cifs <remotetarget> <dir> -o <options>
but after reboot there is no mounted folder any more. Mount.cifs needs root password. How to add this line to the autostart?
Just to update this! I updated by using yast and now the problem is solver (Just to mention that the online update could not find any updates, thus I opened software managements and found all samba packets and selected update them for each single package separaretely)…