System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

unable to see the files on directory using CIFS Mount

sudhakara
Occasional Advisor

unable to see the files on directory using CIFS Mount

Hi
i created a directory and files in windows 2003 server

and i need to get it in hpux11.31 machine with user login.

but i am unable to see the directory while using user login.

says not found or access denied.


5 REPLIES
Ganesan R
Honored Contributor

Re: unable to see the files on directory using CIFS Mount

Hi,

The user which use to login on hpux server should have the required permission. Otherwise you will not be able to access.

Or you can issue the following command after login.

/opt/cifsclient/bin/cifslogin

Use the username which is having access to the samba share.

After successful login you will be able to access.
Best wishes,

Ganesh.
sudhakara
Occasional Advisor

Re: unable to see the files on directory using CIFS Mount

hi

you mean Windows Server
which username


/opt/cifsclient/bin/cifslogin


Ganesan R
Honored Contributor

Re: unable to see the files on directory using CIFS Mount

Hi,

you mean Windows Server ?

yes.

which username ?

Normally when they share windows directory, they will be giving access to specific user. You need to use that account.
Best wishes,

Ganesh.
sudhakara
Occasional Advisor

Re: unable to see the files on directory using CIFS Mount

Hi

"The user which use to login on hpux server should have the required permission"

i need to know how to provide require permission to the user on hpux server

thanks
Ganesan R
Honored Contributor

Re: unable to see the files on directory using CIFS Mount

Hi,

"Permission denied" on a CIFS filesystem is the result when the user issuing the bdf command has not been authenticated by the server.
This authentication is accomplished with the cifslogin command. The sequence of steps is:

1. cifsmount (only root can do this)
2. cifslogin (and number of users can do this)

Note that when a user does cifslogin, the username-password pair is that of an account on the server (or the server's domain). The user's login name on
the hpux cifs client host is unknown and irrelevant to the server. Note also that root on the client can mount and login in one step by specifying the
username and password options to cifsmount (see the cifsmount manpage or enter cifsmount without any options).

Do 'cifslist' to verify the status of cifs mounts and logins. If your login name (whether root or anything else) is not shown as having an active login
(a "Remote User" name) on the server, you will not be able to access that server's mounted shares from the cifs client host, whether by bdf, ls, or any other method.

As root user
#cifsmount //windows system name/shared directory -U -P

Now root is mounted the share. Normal user does not have access to that share. Normal user can do the following to gain access:

$cifslogin

$cifslist -> to list the shares

Normal user will be prompted for a password and if it is correct, he will be given access to the share with the same privileges that user root has on windows server.

For more details on how a normal user can directly mount a share, see here

http://docs.hp.com/en/B8724-90044/ch05s02.html

http://docs.hp.com/en/B8724-90044/ch05s03.html

http://docs.hp.com/en/B8724-90044/ch03s02.html

Best wishes,

Ganesh.