Need help with Couldn't canonicalise: Permission denied error


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Need help with Couldn't canonicalise: Permission denied error
# 1  
Old 04-07-2006
Need help with Couldn't canonicalise: Permission denied error

Hi People

I am getting this error Couldn't canonicalise: Permission denied. Anyone knows what does this error mean ? It all started when my team members were testing Sftp functions on some directories and they were hitting directory no found errors within their scripts.

So when we enquired our unix administrator, he did a manual sftp on the commandline and when he tried to cd to that directory in question, that error in bold was encountered.However when we tried to cd to other directories on the same level. there was no problem.

Our current setup is a Solaris 10 OS and the directories we are accessing are on a certain mount point set up by our administrators and we were told to deploy our batch architecture in that mount point.

Does anyone have any idea what is wrong or have any resources/links which could help me further ?

regards
Wilson
# 2  
Old 04-07-2006
The 'couldn't cannonicalize' type of errors come up when the sftp server is unable to access the file/directory mentioned in the command. The 'permission denied' is an indication that one of the directories in the path being accessed does not have read/execute permission for the user trying to access it.

Check the permissions on the directory that the user is trying to accessis giving the error and check the permissions on directories that are not. Then change the permissions to fix the problem.
# 3  
Old 04-08-2006
Hi blowtorch,

thanks for your inputs, however, during our initial debugging, we could ls -l the directory in question from the command prompt and go cd into the directory.However when we tried to do sftp or getting the administrator to go in and sftp manually, the error is encountered Smilie
# 4  
Old 04-11-2006
'blowtorch' is correct.

You ALSO say this directory hierarchy is MOUNTED. NFS ? From where ? So the users who are trying to access these directories exist on the remote machine ? When the administrator tried it 'manually', was he 'root' ?? [Root will get turned into 'nobody' on the remote machine.]

Just a few thinkg to think about / check.

ALSO. If it is a locally mounted filesystem, what are the permissions of the UNDERLYING directory ??
I do not know about Solaris 10, but Solaris 8 would block you if the UNDERLYING directory was owned by root and accessible ONLY by root. No matter WHAT the mounted directory permissions are.
# 5  
Old 02-06-2007
Couldn't canonicalise: Permission denied SFTP to /nfs share

Let me tack on a similar issue to the above since this is the closest thread I can find out here on the web and there was no resolution posted by the initial user.

I have 2 identical systems that are mounting an NFS filesystem aptly enough named /nfs from a Netapp appliance. I SFTP to SYSTEM1 and cd to the /nfs directory and do an 'ls' and get a directory listing. I SFTP to SYSTEM2 and cd to the /nfs directory and I get the following error message:

Couldn't canonicalise: Permission denied

I'm doing this as the same user with identical UID/GID on both servers. Dsbeerf above referenced NFS but didn't elaborate. The permissions on the /nfs mount on both systems is 777.

Thanks in advance.
# 6  
Old 02-06-2007
You have to remember that the server or in this case the network appliance owns the permissions on the mounted directory, not the local server. If the netapp doesn't know one of the servers it might not be willing to share it's files or filesystems with it.
# 7  
Old 02-06-2007
Quote:
Originally Posted by violatile
Let me tack on a similar issue to the above since this is the closest thread I can find out here on the web and there was no resolution posted by the initial user.

I have 2 identical systems that are mounting an NFS filesystem aptly enough named /nfs from a Netapp appliance. I SFTP to SYSTEM1 and cd to the /nfs directory and do an 'ls' and get a directory listing. I SFTP to SYSTEM2 and cd to the /nfs directory and I get the following error message:

Couldn't canonicalise: Permission denied

I'm doing this as the same user with identical UID/GID on both servers. Dsbeerf above referenced NFS but didn't elaborate. The permissions on the /nfs mount on both systems is 777.

Thanks in advance.
Was the NFS mount on both systems specified with the same options?

Is the filesystem exported with same access rights for both systems?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Pipe, permission denied error

Hello, I am trying to stream lines written into file. When first source is down, I expect the code to swap to second line and run it. Script below works as usual and it prints out each line of the input file (s.txt): #!/bin/bash while read -r line; do echo "$line" done <"$1" exit 0Output... (12 Replies)
Discussion started by: baris35
12 Replies

2. Red Hat

Permission denied error using chmod on a cifs mount

I have a RHEL 5.7 system with a cifs mount from a Windows 2007 file server that I need to fix the permissions on. Once the share is mounted the permission for the mount are 777. I need to change that to 770 on the top level directory and to 640 on the sub-directory .ssh/. But when I run chmod... (0 Replies)
Discussion started by: westmoreland
0 Replies

3. UNIX for Dummies Questions & Answers

Webserver permission denied error

Hello, I was trying a perl-cgi tutorial and saving the data from online form to a file named (guests.txt). I am using the localhost port 80 for practice. My page file "guestbook.html" is working as I saw the online form. After filled out the blanks and submit, I was expecting to see the result... (3 Replies)
Discussion started by: yifangt
3 Replies

4. UNIX for Dummies Questions & Answers

Getting Error 0403-006 Execute permission denied.

Hi All, Need your help.. I am writing one script in which I am assigning value to one variable but when i am executing it is showing error "0403-006 Execute permission denied" below is the line of that script : INPUT_COUNT=wc $GIF_DIR/input/VID_RIMS.DAT | awk '{print $1}' and access... (2 Replies)
Discussion started by: NirajThakar
2 Replies

5. Shell Programming and Scripting

Change: xecho: execute permission denied error

Hello, I am have an issues with one of my scripts. I get the following error when I get to the point in the script where I am making the change. The change does take however. the error is "change: xecho: execute permission denied" Everything was working properly until I start cleaning... (3 Replies)
Discussion started by: simpsonjr
3 Replies

6. OS X (Apple)

Permission Denied Error with X11

Hello, I am using Tiger 10.4.11 I am trying out the GIMP, so I installed the X11 package from "Optional Installs" on the cd. Whenever I open X11, I get an error: xterm: could not exec /dev/null: Permission denied I have chmodded /dev/null to 777, as well as the /tmp directory. I deleted... (2 Replies)
Discussion started by: Ricardo-san
2 Replies

7. Shell Programming and Scripting

ERROR : Permission denied (publickey,password,keyboard-interactive).

Hello, when I try to connect to a remote machine through SSH username@host I am getting the error message Permission denied (publickey,password,keyboard-interactive). Can any one tell me what is the problem. the key is added in the remote machines authorized_keys file. (5 Replies)
Discussion started by: deepusunil
5 Replies

8. Shell Programming and Scripting

xterm gives me permission denied error

When I try to run xterm at a command prompt in solaris 2.5.1, i'm getting a permission denied error. But the directory and user permissions look ok, they are part of a users group and then also root,sys,adm so what gives? Any ideas? Thanks! (1 Reply)
Discussion started by: kymberm
1 Replies

9. UNIX for Advanced & Expert Users

getcwd: permission denied error

When I do a 'cd /appl' and issue 'ls -al' command, I get the following error for .. directory. ./..: Permission denied But still I get a listing of other directories under /appl. Also, if I give 'man' for any command under this /appl folder, I get the following error: ... (3 Replies)
Discussion started by: Deepa
3 Replies

10. UNIX for Dummies Questions & Answers

rm Permission Denied error

I am very new to Unix. We have a script that will remove files from a directory. The account removing the files has the same permissions as the directory the files are located. We have logged in as the account and deleted the files from that directory but when we run the script with the account... (7 Replies)
Discussion started by: Cech2002
7 Replies
Login or Register to Ask a Question