Operating System - HP-UX
1847207 Members
3544 Online
110263 Solutions
New Discussion

Cifsmount in startup of the machine

 
SOLVED
Go to solution

Cifsmount in startup of the machine

As I make to place in my server HP-UX un conection with cifsmount in startup of the server.

cifsmount //NT server/resource /
Alex
5 REPLIES 5
Sundar_7
Honored Contributor

Re: Cifsmount in startup of the machine

I never had to use this. But you can try somethign like this

# vi /etc/rc.config.d/cifsclient
RUN_CIFSCLIENt=1
#

# vi /etc/fstab
..
..
NTServer:/resource /mountpoint -U login 0 2
#

# mount -aF cifs

as I said, I havent tested this and not sure if this is going to work.
Learn What to do ,How to do and more importantly When to do ?
Alzhy
Honored Contributor
Solution

Re: Cifsmount in startup of the machine

Aelx,

FOr UNIX mounts from NT's to be persistent accross reboots, you must the "-s" option in cifsmount so it saves mount and connect/password information in a database:

mroot@sol # cifsmount -?

usage: cifsmount /// []
cifsmount -h prints short help
cifsmount -v prints version information
valid options are:
-r Mount as read-only filesystem
-c Set netbios name of client
-p Connect at this tcp port
-u Enable unencrypted passwords
-s Save mount and password in database (please do not
use unless you understand the security implications)
-E Force data encryption (only when compiled with SSL)
-C Require server certificate (only when compiled with SSL)
-W Do without server certificate (only when compiled with SSL)
-f Force mount. Mount the server even if it does not respond.
-U Username sent to server
-P Password given in commandline (implies -N)
-S Read password from standard input (implies -N)
-N Don't prompt for a password
-I Use this address or hostname for tcp connection

Then you use "cifslist -M" to confirm what's in the CIFS Client DB:

root@sol # cifslist

usage: cifslist -A lists servers with shares and mountpoints
cifslist -S lists connected servers
cifslist -U lists users in database
cifslist -M lists mounts in database
cifslist -s lists shares open at server
cifslist -u lists users logged in at server
cifslist -m lists mountpoints for share
cifslist -h prints short help
cifslist -v prints version information

You need not bother with /etc/fstab.
Hakuna Matata.
Sundar_7
Honored Contributor

Re: Cifsmount in startup of the machine

Looks like you have to use cifslogin command and authenticate yourself.

Look at man page of cifslogin and cifsmount.
Learn What to do ,How to do and more importantly When to do ?
Alzhy
Honored Contributor

Re: Cifsmount in startup of the machine

no need for cifslogin.

You will only need cifsmount command. Look at the syntax...
Hakuna Matata.
Sundar_7
Honored Contributor

Re: Cifsmount in startup of the machine

Alexandre, Ignore the my posts on the /etc/fstab. I will see if I can come up with something that is goign to work :-)
Learn What to do ,How to do and more importantly When to do ?