HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Permission Error (http://www.howtoforge.com/forums/showthread.php?t=531)

dranieri 11th September 2005 20:13

Permission Error
 
Hello to Everyone,

Can some one tell me why I am getting a permission denied when trying to
edit /etc/network/interfaces This the stable release of Debian/linux version 3.1r0a "sarge" following this tutorial http://www.howtoforge.com/perfect_setup_debian_sarge
I am logged in as root just in case anyone is wondering.

falko 11th September 2005 20:34

Can you post the output of
Code:

ls -l /etc/network/interfaces
here?

dranieri 11th September 2005 20:41

Re:
 
Quote:

Originally Posted by falko
Can you post the output of
Code:

ls -l /etc/network/interfaces
here?

command typed ls-/etc/network/interfaces
response -bash: ls-/etc/network/interfaces: N such file or directory

dranieri 11th September 2005 20:43

Re:
 
I apologize not used to using forums at all. Will do better just please let me know in a nice way if I am making mistakes or anthing I could do better.

command typed ls-/etc/network/interfaces
response -bash: ls-/etc/network/interfaces: No such file or directory

falko 11th September 2005 21:04

Quote:

Originally Posted by dranieri
I apologize not used to using forums at all. Will do better just please let me know in a nice way if I am making mistakes or anthing I could do better.

No problem. :)

Quote:

command typed ls-/etc/network/interfaces
You made a typo there. The correct command is
Code:

ls -l /etc/network/interfaces

dranieri 11th September 2005 22:07

RE: Permission Denied
 
Oh man sorry.
the return reply was -rw-r--r 1 root root 268 2005-09-11 12:32 /etc/network/interfaces
was wondering about permissions however don't know enough about setting them. Know perl pretty well but rusty on unix commands.
Interesting why root root
if I am reading corectly the permission for this file 644 which is not good.
Pulling out my hair and books again hmmm I see about the root root it means I am logged in as root user under the root.
PS Thank you tremendously.

till 11th September 2005 22:16

Quote:

Originally Posted by dranieri
Oh man sorry.
the return reply was -rw-r--r 1 root root 268 2005-09-11 12:32 /etc/network/interfaces
was wondering about permissions however don't know enough about setting them. Know perl pretty well but rusty on unix commands.
Interesting why root root
if I am reading corectly the permission for this file 644 which is not good.
Pulling out my hair and books again hmmm I see about the root root it means I am logged in as root user under the root.
PS Thank you tremendously.

Hi, the permissions of /etc/network/interfaces are correct.
Which editor do you use? Try vi on the commandline or an editor like pico or nano at the commandline.

linutzy 11th September 2005 22:20

Chmod
 
#touch test
#ls -al test
-rw-r--r-- 1 user user 0 2005-09-11 16:17 test
#chmod 777 test
#ls -al test
-rwxrwxrwx 1 user user 0 2005-09-11 16:17 test

dranieri 11th September 2005 22:24

RE: Thank you
 
I assumed too much. Seems Edit in the tutorial means as in run editor. I did not type ee /etc/network/interfaces
Thanks to everyone you folks are great.
Yippee spins in chair :)


All times are GMT +2. The time now is 06:30.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.