Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to give user webadmin full access to directory /usr/tomcat/webapps.

So, I have created a symlink in webadmin's home directory to the target directory:

lrwxrwxrwx 1 webadmin tomcat   28 Aug 19 22:32 webapps -> /usr/tomcat/webapps/

The problem: when logged in (via ssh) as webadmin, the webapps symlink appears as above but when I want to cd into it the response is:

can't cd to webapps

With root user I can cd from /home/webadmin into webapps symlink, so the link points to a valid location.

This is even more vexing since both /usr/tomcat/ and /usr/tomcat/webapps are now set to 777.

share|improve this question
    
What are the permissions of /usr/tomcat/? –  terdon Aug 20 '13 at 10:31
    
as said above the permissions are 777. Ownership is tomcat_user and tomcat_group. –  sebut Aug 20 '13 at 10:36
    
Please post the output of ls -ld /usr/tomcat and ls -ld /usr/tomcat/webapps –  zagrimsan Aug 20 '13 at 10:38
    
Sorry, I missed /usr/tomcat/, I thought you had only mentioned /usr/tomcat/webapps. –  terdon Aug 20 '13 at 10:55
    
@zagrimsan ls -ld /usr/tomcat/ : drwxrwxrwx 9 tomcat_user tomcat_group 4.0K Aug 18 15:56 /usr/tomcat/ # ls -ld /usr/tomcat/webapps : drwxrwxrwx 8 webadmin tomcat_group 4.0K Aug 19 18:16 /usr/tomcat/webapps –  sebut Aug 20 '13 at 11:00
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.