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 have this directory:

drwxr-x--- 2 root adm 160 2011-08-18 02:13 apache2

Im belonging to the group adm but I can not access to the directory..It says: "Permission denied".

share|improve this question
    
What is the entire path? if it's /home/apache2 you'll need 770 from /home on up. –  NickW Jun 14 '13 at 15:30
    
it is /var/log/apache2 –  user35538 Jun 14 '13 at 15:30
    
what are you trying to do to the directory? –  NickW Jun 14 '13 at 15:32
    
I just want to print the apache log using "tail -f /var/log/apache2/error.log" –  user35538 Jun 14 '13 at 15:32
2  
There you are then, it's the permissions on error.log. Try doing sudo ls -all or su'ing up to root –  NickW Jun 14 '13 at 15:41

1 Answer 1

up vote 2 down vote accepted

After you are added to a group, you will need to log out, then in again, or do an su - <yourusername> to get the system to recognize your new privileges.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.