[Lubuntu 14.04] Monting automatically an network shared folder with fstab

B

balubeto

Guest
Hi

I have a computer on my network that has Lubuntu 14.04 32 bit with many accounts and a NAS that shares, via Login, its folders with the Samba protocol.

I wish that a network shared folder was mounted automatically when the computer is started so that all users could access it, without Login, in reading, writing and running.

So, what was the proper procedure to do this by configuring appropriately also the file /etc/fstab?

Thanks

Bye
 
Last edited:


yes in /etc/fstab would be the place for other computer to auto mount the samba drive:
Code:
//server/share /mnt/dir smbfs username=user,password=xxx 0 0
 
yes in /etc/fstab would be the place for other computer to auto mount the samba drive:
Code:
//server/share /mnt/dir smbfs username=user,password=xxx 0 0

I performed your procedure, but when I access this network directory with PCManFM, I get this error message: "mount: only root can mount //<Server_name>/<Share_directory> on /media/<Point_mount>". How come?

Thanks

Bye
 
I inserted, in the sambashare group, the accounts that will use the network directory. Then, I added, in the /etc/fstab, this line:

Code:
//<Server_name>/<Share_directory> /media/<Point_mount> cifs credentials=/root/.smbcredentials,file_mode=0775,dir_mode=0775,gid=118,forcegid,iocharset=utf8 0 0

Later, I put the force group = sambashare directive in /etc/samba/smb.conf and I restarted the system.

Now, if I write:

Code:
xxxxxxx@Pluto:~$ sudo mount -a

I get:

Code:
mount error: could not resolve address for <Server_name>: Unknown error

Instead, if I access directly to this resource by PCManFM, I get this error:

Code:
mount: only root can mount //<Server_name>/<Share_directory> on /media/<Point_mount>

This network resource can I use it normally if I access it via the menu Go ---> Network of PCManFM.

How come?

Thanks

Bye
 
Last edited:
I noticed that if in /etc/fstab I substitute the name of the server with its IP address, I can fully access to this network resource. How come? How should I do to make sure that DNS service is working correctly also during the startup of Linux?

Thanks

Bye
 

Members online


Top