cancel
Showing results for 
Search instead for 
Did you mean: 

sh : permission denied

 
Raoof
Regular Advisor

sh : permission denied

Hello Experts,

We have the following Unix-version : B.11.31.

I have the following problem on mapping folder from Win 2003 server to HP-UX server

The permissions on the windows-machine is ok.

From HP-Unix I can access the directory as root, but not as user 'oracle'.


To mount the directory I did the following :

1.Made a new directory : /appserv and with chmod I gave it the maximum of permissions.

2.Changed the ownership of the dir

# chown oracle:oinstall /appserv

As a oracle user i can access/read the directory

3.Before mounting the dir, rights on the directory are the following

# drwxrwxrwx 2 root sys 131072 Jan 22 10:10 appserv

4. Once i issued the following below command for mounting as a root user

# cifsmount //server.domain.name/shared-dir /appserv -U username -P password

ownership is been reverted and when i tried to access the directory as a oracle user i am getting the below message

sh : appserv : permission denied

Even after going through the below steps, I am facing the same permission problem on reading the directory.

$ cifslogin -s username -P password

$ sh : appserv : permission denied


Will be really grateful and thankful if any one please help me out to resolve this issue.


Thanks & Best Regards,

Raoof
10 REPLIES
Dennis Handly
Acclaimed Contributor

Re: sh : permission denied

What does "ll -d /appserv" show after mounted?
Taifur
Respected Contributor

Re: sh : permission denied

Hi,

Provide full permission appserv directory and oracle directory . check that issue.

Cheers/
Taifur
Raoof
Regular Advisor

Re: sh : permission denied

When i issued

# ll -d

drwxrwxrwx 2 root sys 131072 Jan 23 09:28 /appserv

About permission on windows directory, it contains the full permission.
Dennis Handly
Acclaimed Contributor

Re: sh : permission denied

drwxrwxrwx 2 root sys 131072 Jan 23 09:28 /appserv

After it was mounted?
Not that it should matter for a HP-UX FS, can you do this as oracle.
Raoof
Regular Advisor

Re: sh : permission denied

As a oracle user i cannot able to mount the directory.

Before mounting i changed the ownership to oracle and it is showing the owner as oracle user when i issued ll -d

# drwxrwxrwx 2 oracle oinstall 22084 Jan 24 9:30 appserv

but once i mount the directory the ownership is getting revert like on ll -d it display

# drwxrwxrwx 2 root sys 33783 Jan 24 9:32 appserv

I don't know why the ownership is getting revert?

after mounting when i try to access the mount point as oracle user i am facing the below error

sh : appserv : permission denied

Also i want to know what kind of permission the windows shared folder should have, i means to say full control or read/write or execute only?

Please need urgent help on this.

Thanks
Dennis Handly
Acclaimed Contributor

Re: sh : permission denied

>As a oracle user I cannot able to mount the directory.

Mount as root, list as oracle.

>once I mount the directory the ownership is getting revert like on ll -d it display
>I don't know why the ownership is getting revert?

That's correct, when you mount, you obscure it based on what you mount.

>I try to access the mount point as oracle user I am facing the below error
sh : appserv : permission denied

What are you doing, "cd appserv"?

>I want to know what kind of permission the windows shared folder should have, I means to say full control or read/write or execute only?

Most likely full control if you want to read/write access. And I assume you need execute to search your folders?
Raoof
Regular Advisor

Re: sh : permission denied


Windows folder has the full permission.

I tried for cd appserv and also cd /appserv, for both i am getting ther permission denied error.

Please its urgent.
Raoof
Regular Advisor

Re: sh : permission denied

Hello Experts

I am still facing the problem to access the mount point as oracle user.


Please help me to get rid out from the mention issue.

Thanks & Regards
Jose Mosquera
Honored Contributor

Re: sh : permission denied

Hi,

Have you tried mount CIFS filesystems using /etc/fstab file and mount/umount commands?

This way offers you mount options, please refer to following document for detailed info, specially pag 32):
http://docs.hp.com/en/B8724-90022/B8724-90022.pdf

Rgds.
Raoof
Regular Advisor

Re: sh : permission denied

What happen dears?? I still did not receive any valuable solution to get rid out of from my problem which i am facing on production.

No experts here to solve my problem? Since from last week i am struggling to solve my issue but still i cannot.

Please dears/experts try to help me to solve my issue.