1834991 Members
2121 Online
110073 Solutions
New Discussion

Problem with CIFS client

 
SOLVED
Go to solution
Piotr Smerda
Occasional Contributor

Problem with CIFS client

Hi.
I have a problem with communication between Windows 2000 and HP-UX server.
On Windows 2000 I have some shares (eg. share1$, share2$ and so on). On HP-UX I'm trying to mount these shares on /mnt/test1 /mnt/test2 ...
But I have a problem .
When i'm using root account everything looks good, I can wrte files, make dirs.
But from the ordinary user (eg. database) I cannot even read directory listing of /mnt/test1 dir.

I'm trying to mount share with this command :
mount -F cifs -o username=user_windows,password=password_windows server:/share1$ /mnt/test1

On Linux server I can use gid and uid options and I can mount share with credentials "database/backup".
Is there any possibility to mount shares on HP-UX with credentials of user "database"?

Thank You in advance.
Piotrek
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Problem with CIFS client

Couple of things to check:

1) If windows is controlling the share, setting up a root user in the windows system will greatly assist when root has to access or change data. Same for any Unix user. Setting up account for each Unix/Linux machine might be helpful

2) See about numeric user id standardization between Linux and HP-UX users. If steve is user 203 on HP-UX and 503 on Linux confusion and unhappiness with ownership and such can occur.

3) Make sure the samba on the Linux side is up to date. Red Hat releases ES 3.0 with a non-functional samba release installed. The client could not recognize permissions on the samba server that was released with Fedora or other Linux distributions.

To mount shares on hp-ux with the credential database presents a problem.

HP-UX only recognizes the first eight digits of the user id. It pretty much ignores the rest.

You can set up the user and put it in the proper groups. Then make sure the permissions on the files it needs to access are valid.

One way around these problems is Single sign one authentication. LDAP can be used to authenticate users on Windows, Linux and HP-UX. Windows ADS can be used to authenticate users as well, but Samba 3.x is required and thats not production code on HP-UX yet.

It gets fun and complicated.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Darren Prior
Honored Contributor
Solution

Re: Problem with CIFS client

Hi,

You have a couple of choices:

1) run cifslogin from the database user

2) use the guestUser feature of CIFS client. This is documented in the Admin Guide for CIFS client - which can be found at http://docs.hp.com

regards,

Darren.
Calm down. It's only ones and zeros...