LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-08-2005, 12:50 PM   #1
ekdya
Member
 
Registered: Oct 2003
Posts: 280

Rep: Reputation: 30
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
 
Old 11-08-2005, 01:08 PM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
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:lthurber@server ~]$ echo $home

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

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?

Last edited by rose_bud4201; 11-08-2005 at 01:09 PM.
 
Old 11-08-2005, 02:52 PM   #3
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Yes, I agree with rose_bud4201. There is no "$home". You should probably use "$HOME" or "~".
 
Old 11-08-2005, 04:24 PM   #4
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
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 ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'permission denied' trying to mount a directory leupi Linux - Networking 19 12-04-2005 06:50 PM
root gets 'Permission denied' to directory mikemrh9 Linux - Security 2 11-18-2005 04:15 AM
useradd problems - permission denied on /home/* for new users lowpro2k3 Red Hat 1 02-09-2004 11:18 PM
moved home: permission denied mtb Linux - Software 4 12-17-2003 06:09 AM
permission denied when opening directory pilot1 Linux - General 1 10-23-2002 08:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration