Any Unix/cifs users here?

One more GQ question for the day…

I’m trying to connect an HPUX 11.11 box to a windows box. If I login as root on the HPUX box and us cifsmount, I can connect without any problems and have the drive of the windows box look like a subdirectory on the HPUX box.

However, making this connection as root doesn’t seem to make it available to other users, which I need to do. Further, I can’t make the connect without being root as the cifsmount command says I must be root to run it.

Anyone know how I can run the cifsmount command as root and make it so other users will see the newly mounted windows drive?

This should just be a matter of setting the perimission on the mount point itself.

After the mount the permissions may change, this is normal behavior. So try a chmod on the mount point after doing the mount and then see if non-root users can access it.

Having the permissions set the way you want in the same step as mount should be doable but I don’t know how to do it off the top of my head, I’d have to google it.

I set the permission to be rwx for all users (chmod a+rwx) on the mount point but I can’t see it if I login as a regular user.

I also tried creating the mount directory with the regular user than mounting as root but that didn’t seem to change anything.

Why is it that I can spend several hours working on a problem and as soon as I post it here I manage to find the answer within about 20 minutes on my own???

Once the share is mounted, other users need to login individually before they can gain access to it. It was as simple as users issuing a cifslogin command and everything worked great.

Weird, I’m not familiar with this cifslogin. It looks like an HP thing? Because in other *nix flavors I’ve never had to do such a thing. Learn something new I guess …