LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   permission denied to home directory (https://www.linuxquestions.org/questions/debian-26/permission-denied-to-home-directory-381163/)

ekdya 11-08-2005 12:50 PM

permission denied to home directory
 
Hello

I am having a Permission denied when issuing the following command
from the console;
$startx >$home/startx.log 2>&1
-bash: /startx.log. Permission denied

drwxr-xr-x 28 sam sam 8192 Nov 9 05:48 sam
so I change the permission to
drwxrwxrwx 28 sam sam 8192 Nov 9 05:48 sam

but that did not fix it.

could some one tell us whats wrong? why permission denied to my own
home directory?

thanks

rose_bud4201 11-08-2005 01:08 PM

You're sure that $home has your home directory in it? It looks like bash is trying to write to /startx.log, which is in the root directory and which users do not have write access to.
Example:

[1017:[email protected] ~]$ echo $home

[1019:[email protected] ~]$ cat $home/startx.log
cat: /startx.log: No such file or directory
[1020:[email protected] ~]$ export home="/home/lthurber"
[1021:[email protected] ~]$ cat $home/startx.log
cat: /home/lthurber/startx.log: No such file or directory
[1022:[email protected] ~]$

When there is something in $home, it will print the entire path when giving an error message.

Just a thought, but it may be worth checking?

spooon 11-08-2005 02:52 PM

Yes, I agree with rose_bud4201. There is no "$home". You should probably use "$HOME" or "~".

rose_bud4201 11-08-2005 04:24 PM

The fact that someone named 'spooon' just said "there is no $home" made me giggle uncontrollably has got to be an indicator of how stressful my day is being. Awesome ;-)


All times are GMT -5. The time now is 03:11 PM.