LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-24-2006, 12:21 PM   #1
pckho
LQ Newbie
 
Registered: Nov 2005
Location: Singapore
Posts: 6

Rep: Reputation: 0
domainname - permission denied


Hi,

I have recently installed debian 3.2. Set up all the configurations. However, when I run the command "domainname -f", if give me "domainname: command not found". I then tried running this command in the directory where the command is, I get "./domainname: Permission denied"

Could anyone enlighten me to what is going on?

Thanks!!
PCKHO
 
Old 07-24-2006, 12:39 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Go to the directory containing the 'domainname' executable and do 'ls -al domainname' and post the output. It may not have the executable bit sit or something like that.
 
Old 07-28-2006, 03:24 AM   #3
pckho
LQ Newbie
 
Registered: Nov 2005
Location: Singapore
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Matir for the suggestion. I've checked the directory.

"hostname" command which resides in the same directory does not have the executable mode enabled as well. But it could be executed. "domainname" still can't be run.
 
Old 07-28-2006, 11:18 AM   #4
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Did you follow Matir's suggestions regarding to post the output of the ls command (you could do that for the "hostname" command, too) and Asking questions the smart way?
 
Old 07-28-2006, 12:29 PM   #5
pckho
LQ Newbie
 
Registered: Nov 2005
Location: Singapore
Posts: 6

Original Poster
Rep: Reputation: 0
Hi,

This is the directory that I found the files. Not sure if it is the correct one. The directory is "/proc/sys/kernel"

Rgds.

========================================================
-rw-r--r-- 1 root root 0 Jul 29 09:56 acct
-rw------- 1 root root 0 Jul 29 09:56 cad_pid
-rw------- 1 root root 0 Jul 29 09:56 cap-bound
-rw-r--r-- 1 root root 0 Jul 29 09:56 core_pattern
-rw-r--r-- 1 root root 0 Jul 29 09:56 core_setuid_ok
-rw-r--r-- 1 root root 0 Jul 29 09:56 core_uses_pid
-rw-r--r-- 1 root root 0 Jul 29 09:56 ctrl-alt-del
-rw-r--r-- 1 root root 0 Jul 29 09:56 domainname
-rw-r--r-- 1 root root 0 Jul 29 09:56 hostname
-rw-r--r-- 1 root root 0 Jul 29 09:56 hotplug
-rw-r--r-- 1 root root 0 Jul 29 09:56 modprobe
-rw-r--r-- 1 root root 0 Jul 29 09:56 msgmax
-rw-r--r-- 1 root root 0 Jul 29 09:56 msgmnb
-rw-r--r-- 1 root root 0 Jul 29 09:56 msgmni
-r--r--r-- 1 root root 0 Jul 29 09:56 osrelease
-r--r--r-- 1 root root 0 Jul 29 09:56 ostype
-rw-r--r-- 1 root root 0 Jul 29 09:56 overflowgid
-rw-r--r-- 1 root root 0 Jul 29 09:56 overflowuid
-rw-r--r-- 1 root root 0 Jul 29 09:56 panic
-rw-r--r-- 1 root root 0 Jul 29 09:56 printk
dr-xr-xr-x 2 root root 0 Jul 29 09:56 random
-rw-r--r-- 1 root root 0 Jul 29 09:56 real-root-dev
-rw-r--r-- 1 root root 0 Jul 29 09:56 rtsig-max
-r--r--r-- 1 root root 0 Jul 29 09:56 rtsig-nr
-rw-r--r-- 1 root root 0 Jul 29 09:56 sem
-rw-r--r-- 1 root root 0 Jul 29 09:56 shmall
-rw-r--r-- 1 root root 0 Jul 29 09:56 shmmax
-rw-r--r-- 1 root root 0 Jul 29 09:56 shmmni
-rw-r--r-- 1 root root 0 Jul 29 09:56 sysrq
-rw-r--r-- 1 root root 0 Jul 29 09:56 tainted
-rw-r--r-- 1 root root 0 Jul 29 09:56 threads-max
-r--r--r-- 1 root root 0 Jul 29 09:56 version
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
su -> permission denied progster Linux - General 9 06-28-2007 12:36 PM
Permission Denied Old Timer Programming 4 12-15-2005 03:23 PM
Permission Denied Deag^ Linux - Newbie 2 10-20-2004 02:14 PM
Permission Denied NathanCohen2003 Linux - Software 4 07-10-2004 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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