I have to mount a folder in a server. At present i use command “sudo mount -t cifs //shfiler1/iproot /shfiler1/iproot -o credentials=$HOME/.smbpwd” to mount it to iproot folder. Content in .smbpwd is like
username=foo
password=plaintext
This way is ok to mount it. But i want to mount this folder every time when openSUSE start up. I tried NFS client, there is no option to setup username and password, so connection failed. I don’t know if there is anyother way to do that.
Hope someone can help me.
On Tue, 21 Aug 2012 00:36:02 +0000, JeromeCui wrote:
> This way is ok to mount it. But i want to mount this folder every time
> when openSUSE start up. I tried NFS client, there is no option to setup
> username and password, so connection failed. I don’t know if there is
> anyother way to do that.
NFS won’t do CIFS.
When you mount the volume, have a look in /etc/mtab and see what the
entry looks like - that should guide you for an /etc/fstab entry.
I found an entry like this:
//shfiler2/iproot/ /shfiler1/iproot cifs rw,relatime,sec=ntlm,unc=\shfiler2\iproot,username=x_cui,uid=0,noforceuid,gid=0,noforcegid,addr=134.244.234.100,file_mode=0755,dir_mode=0755,nounix,rsize=16384,wsize=131007,actimeo=1 0 0
On 08/21/2012 10:36 AM, JeromeCui wrote:
> mount -t cifs //shfiler1/iproot /shfiler1/iproot -o
> credentials=$HOME/.smbpwd" to mount it to iproot folder. Content in
> .smbpwd is like
Try this line in fstab (and also make the last line in fstab a blank line):
On 08/21/2012 10:36 AM, JeromeCui wrote:
> mount -t cifs //shfiler1/iproot /shfiler1/iproot -o
> credentials=$HOME/.smbpwd" to mount it to iproot folder. Content in
> .smbpwd is like
Try this line in fstab (and also make the last line in fstab a blank line):