When running as user1 in the same directory (/home/user1/WWW)
[user1@server1 WWW (master)]# touch c
Creates the file c inside the directory.
[root@server1 WWW (master) ACCEPTATIE SERVER]# su - user1 -c "touch c"
gives the error
touch: cannot touch `c': Permission denied
Why can this be?
user1:apache. I would suspect the first case would also fail when that was not true.-from the command and dosu user1 -c ...? With-you do a full login, and may end up in another directory than the directory you're currently in.user1not be able to touchcin their home directory. Is there already a file owned by another user there?su - user1 -cchanged the current working directory!user1's home directory is owned by another user?