#1
  1. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    749
    Rep Power
    98

    .bashrc: Permission denied


    After making myself root with "su -" I issue another command, "su svenetto" to become the user svenetto and I get the following error:
    bash: /home/igpro/004/VENETT/.bashrc: Permission denied
    The svenetto's home is /home/igpro/VENETT

    Also, as the user svenetto, if I try to go to him home by issuing the command "cd" I receive the same error.

    Any ideas?

    (Edit)
    I changed the user's shell to /bin/sh and this allows me to log in. After I log in Issue the command "cd" and I receieve:
    sh: cd: /home/igpro/004/VENETT: Not a directory

    If I issue: ls -ld at the home directory I get:
    drwxrws--- 3 svenetto svenetto 4096 Jan 12 10:19 /home/igpro/004/VENETT
    Last edited by epanagio; January 12th, 2007 at 10:25 AM.
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2006
    Posts
    867
    Rep Power
    390

    Cool



    Maybe you should try issuing "su - svenetto" instead to set svenetto's correct environment.

    PS: Notice the dash (-) in the command.
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    749
    Rep Power
    98
    I get the same error:
    PHP Code:
    su svenetto
    su
    warningcannot change directory to /home/igpro/004/VENETTPermission denied
    -bash: /home/igpro/004/VENETT/.bash_profilePermission denied 
    Something makes it think that the directory structure is NOT normal.
  6. #4
  7. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    749
    Rep Power
    98
    After searching I got a few hints about executable, permissions, and folders. So, I looked at the /home folder and it was 770 and it needed to be 775. The owner and the groupp must have write access.

    At any rate, this was an interesting problem and I hope someone else can benefit from my reply.

    Thanks for listening.

    Comments on this post

    • codergeek42 agrees : Thanks for posting your answer, as it may benefit others.

IMN logo majestic logo threadwatch logo seochat tools logo