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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-21-2004, 12:52 AM
|
#1
|
LQ Newbie
Registered: Apr 2004
Posts: 11
Rep:
|
Even as root, Permission Denied
I recently downloaded and installed 'hotwayd'. But, now, I need to make some changes to certain files in order for it to work. One of them is /etc/xinetd.conf. I can open it, but if i make changes, i can't save. So, i access it in the shell, after using 'su' to become root, i try to open it, but this happens:
Code:
[root@localhost etc]# ./xinetd.conf
bash: ./xinetd.conf: Permission denied
I've tried "su -c ./xinetd.conf" but to no avail. Any suggestions.
I have Mandrake and am running KDE
Thanks in Advanced!
Last edited by RevX; 04-21-2004 at 12:55 AM.
|
|
|
04-21-2004, 01:10 AM
|
#2
|
Member
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582
Rep:
|
you want to edit it right? if thats the case then type
[root@localhost etc]# vi ./xinetd.conf
or
[root@localhost etc]# pico ./xinetd.conf
both of those are CLI text editors
well, If you didnt want to get that error while using your current command, do 'chmod +x /etc/xinetd.conf', but for some reason I dont think your intention is to execute the file as a script. (I would recomend aganst it, as it may inadvertantly contain harmfull commands. ie; 'rm -rf /')
|
|
|
04-21-2004, 01:14 AM
|
#3
|
Member
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843
Rep:
|
./xinetd.conf
means you are trying to execute it, and it isn't executable. When you are root,
vi or vim or pico or nano or emacs /etc/xinetd.conf
root will be able to save it.
RO
|
|
|
04-21-2004, 01:16 AM
|
#4
|
Member
Registered: Jun 2003
Location: Sydney Australia
Distribution: SUSE / PCLinuxOS / MEPIS
Posts: 65
Rep:
|
This might be a simplistic answer, so apologies if it sounds condescending.
xinetd.conf is a text file and is not executable so running it with ./ will not work.
You need to use an editor such as vim or pico to open it.
Alternatively, in KDE there is a menu option to run the file manager with root privileges. You could use this to open the file in the normal way.
I hope this helps
Kind Regards
Richard.
|
|
|
04-21-2004, 02:02 AM
|
#5
|
LQ Newbie
Registered: Apr 2004
Posts: 11
Original Poster
Rep:
|
Thanks to the 3 of you. As you can tell, i'm a  (this is day 2 with Mandrake)
 Oops... didn't know that ./ was for executables only... but, i'm learning more each day!
|
|
|
04-21-2004, 07:03 AM
|
#6
|
Member
Registered: Jan 2003
Location: Georgia, US
Distribution: RHEL WS4
Posts: 189
Rep:
|
Quote:
Originally posted by RevX
Thanks to the 3 of you. As you can tell, i'm a (this is day 2 with Mandrake)
Oops... didn't know that ./ was for executables only... but, i'm learning more each day!
|
Actually, ./ just represents the current directory. The reason the shell assumed you wanted to run an executable was because you specified the filename without a preceding command
BTW, welcome to the world without gates 
|
|
|
04-22-2004, 02:43 AM
|
#7
|
Member
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582
Rep:
|
Quote:
Originally posted by MiscGeek
Actually, ./ just represents the current directory. The reason the shell assumed you wanted to run an executable was because you specified the filename without a preceding command
|
to continue on his train of thought, in BASH (the most common linux shell) you need to specify the absolute path of an executable for it to work. so if you want to execute 'funny-script' and its located in /home/foo/scripts/ you couldnt just cd to that directory and type 'funny-script' you would either have to type
'/home/foo/scripts/funny-script'
or if you were in the same directory you would type ./funny-script,
the '.' in ./ stands for the entire path leading to that current directory.
now you might wonder why typing 'vim' at the terminal executes the vim executable, well that is because your system has a set of varriables telling bash where to look for a executable when no absolute path is specified. normally exe's are in /bin, /sbin /usr/bin, /usr/sbin and a few more places.
I hope this helped you more than it confused you.
|
|
|
04-25-2004, 12:10 AM
|
#8
|
LQ Newbie
Registered: Apr 2004
Posts: 11
Original Poster
Rep:
|
Thanks Again
Thanks again to all of you... You were very informative and helpful. You've made the transition a lot easier!
|
|
|
All times are GMT -5. The time now is 11:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|