January 12th, 2007, 08:36 AM
.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:
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.
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.
January 12th, 2007, 01:25 PM
Maybe you should try issuing "su - svenetto" instead to set svenetto's correct environment.
PS: Notice the dash (-) in the command.
January 12th, 2007, 01:33 PM
I get the same error:
Something makes it think that the directory structure is NOT normal.
su - svenetto
su: warning: cannot change directory to /home/igpro/004/VENETT: Permission denied
-bash: /home/igpro/004/VENETT/.bash_profile: Permission denied
January 16th, 2007, 02:34 PM
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