Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
i'm just starting to find my way around my Debian machine,i.e configuring and running my web server(apache+php+mysql).
i have this security issue: for now(logged as a normal user not root), i can only edit and save my files as a root user using vi in the terminal.
how can i be able to create files logged as a normal user even if i have to provide the root password first.
This depends on what folder you're saving them in. For example, you should be able to create and save files anywhere in your home folder. Anywhere else (except perhaps other users' home folders) requires root privileges, but it is always possible to create a subdirectory that does not require such privileges. Just be sure you know what you're doing.
cheers,
jdk
This depends on what folder you're saving them in. For example, you should be able to create and save files anywhere in your home folder. Anywhere else (except perhaps other users' home folders) requires root privileges, but it is always possible to create a subdirectory that does not require such privileges. Just be sure you know what you're doing.
cheers,
jdk
which means i have to always log as root to create a file in, for example, /var/www?
You should not have hijacked unrelated thread for your issue though you are the OP of this thread. It helps mods to keep forum clean if threads are kept at one place and all the posts are related.
Anyhow, are you connected to internet? And are you running it as sudo?
You should not have hijacked unrelated thread for your issue though you are the OP of this thread.
As far as I know hijacking involves other LQ members than the OP drawing away attention from the original post.
Any original poster should be able to ask additional questions in her or his thread without being accused of "hijacking".
It just is up to us if we want to answer them or point to the practice of creating a new thread for unrelated issues.
i'm having problem with this apt-get update command( on Debian):
it couldn't run but give out this error message:
W: Failed to fetch http://volatile.debian.org/debian-volat ... ce/Sources Cannot initiate the connection to volatile.debian.org:80 (2001:610:1908:a000::149:227). - connect (101 Network is unreachable) [IP: 2001:610:1908:a000::149:227 80]
any help?
That is not an error; it's a warning. It's unhappy with one of your repos in the /etc/apt/sources.list file. Either that server is down temporarily, or you were not connected to the network when you ran apt-get command, or the line referring to it is ill formed in some way. You can try a server from another mirror.
If you're still not sure, then post the contents of your sources.list file.
cheers,
jdk
That is not an error; it's a warning. It's unhappy with one of your repos in the /etc/apt/sources.list file. Either that server is down temporarily, or you were not connected to the network when you ran apt-get command, or the line referring to it is ill formed in some way. You can try a server from another mirror.
If you're still not sure, then post the contents of your sources.list file.
cheers,
jdk
here are the contents of sources.list
Code:
#
# deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 DVD Binary-1 20090413-00:33]/ lenny contrib main
deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 DVD Binary-1 20090413-00:33]/ lenny contrib main
deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 DVD Binary-2 20090413-00:33]/ lenny contrib main
deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 DVD Binary-3 20090413-00:33]/ lenny contrib main
deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 DVD Binary-4 20090413-00:33]/ lenny contrib main
deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 DVD Binary-5 20090413-00:33]/ lenny contrib main
deb cdrom:[Debian GNU/Linux 5.0.1 Update DVD 20090414: i386 DVD 1]/ lenny contrib main non-free
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free
# Line commented out by installer because it failed to verify:
#deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
# Line commented out by installer because it failed to verify:
#deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
i've modified the sources.list to this, but still there is no success:
Code:
#
# deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 DVD Binary-1 20090413-00:33]/ lenny contrib main
#deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 DVD Binary-1 20090413-00:33]/ lenny contrib main
#deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 DVD Binary-2 20090413-00:33]/ lenny contrib main
#deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 DVD Binary-3 20090413-00:33]/ lenny contrib main
#deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 DVD Binary-4 20090413-00:33]/ lenny contrib main
#deb cdrom:[Debian GNU/Linux 5.0.1 _Lenny_ - Official i386 DVD Binary-5 20090413-00:33]/ lenny contrib main
#deb cdrom:[Debian GNU/Linux 5.0.1 Update DVD 20090414: i386 DVD 1]/ lenny contrib main non-free
deb http://ftp.us.debian.org/debian/ lenny main
deb-src http://ftp.us.debian.org/debian/ lenny main
deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib
deb http://ftp.us.debian.org/debian/ lenny non-free
deb http://ftp.us.debian.org/debian/ lenny contrib
deb http://www.debian-multimedia.org/ lenny main
deb-src http://debian-multimedia.org/ lenny main
this is what i get:
Code:
nul-mokoena:~# apt-get update
Err http://www.debian-multimedia.org lenny Release.gpg
Could not connect to www.debian-multimedia.org:80 (91.121.86.213). - connect (111 Connection refused)
Err http://www.debian-multimedia.org lenny/main Translation-en_ZA
Could not connect to www.debian-multimedia.org:80 (91.121.86.213). - connect (111 Connection refused)
Err http://debian-multimedia.org lenny Release.gpg
Could not connect to debian-multimedia.org:80 (91.121.86.213). - connect (111 Connection refused)
Err http://security.debian.org lenny/updates Release.gpg
Could not connect to security.debian.org:80 (212.211.132.32). - connect (111 Connection refused)
Err http://ftp.us.debian.org lenny Release.gpg
Could not connect to ftp.us.debian.org:80 (64.50.236.52). - connect (111 Connection refused)
Err http://ftp.us.debian.org lenny/main Translation-en_ZA
Could not connect to ftp.us.debian.org:80 (64.50.236.52). - connect (111 Connection refused)
Err http://security.debian.org lenny/updates/main Translation-en_ZA
Could not connect to security.debian.org:80 (212.211.132.32). - connect (111 Connection refused)
Err http://ftp.us.debian.org lenny/non-free Translation-en_ZA
Could not connect to ftp.us.debian.org:80 (64.50.236.52). - connect (111 Connection refused)
Err http://ftp.us.debian.org lenny/contrib Translation-en_ZA
Could not connect to ftp.us.debian.org:80 (64.50.236.52). - connect (111 Connection refused)
Err http://security.debian.org lenny/updates/contrib Translation-en_ZA
Could not connect to security.debian.org:80 (212.211.132.32). - connect (111 Connection refused)
Reading package lists... Done
W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/Release.gpg Could not connect to ftp.us.debian.org:80 (64.50.236.52). - connect (111 Connection refused)
W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/main/i18n/Translation-en_ZA.bz2 Could not connect to ftp.us.debian.org:80 (64.50.236.52). - connect (111 Connection refused)
W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/non-free/i18n/Translation-en_ZA.bz2 Could not connect to ftp.us.debian.org:80 (64.50.236.52). - connect (111 Connection refused)
W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/contrib/i18n/Translation-en_ZA.bz2 Could not connect to ftp.us.debian.org:80 (64.50.236.52). - connect (111 Connection refused)
W: Failed to fetch http://security.debian.org/dists/lenny/updates/Release.gpg Could not connect to security.debian.org:80 (212.211.132.32). - connect (111 Connection refused)
W: Failed to fetch http://security.debian.org/dists/lenny/updates/main/i18n/Translation-en_ZA.bz2 Could not connect to security.debian.org:80 (212.211.132.32). - connect (111 Connection refused)
W: Failed to fetch http://security.debian.org/dists/lenny/updates/contrib/i18n/Translation-en_ZA.bz2 Could not connect to security.debian.org:80 (212.211.132.32). - connect (111 Connection refused)
W: Failed to fetch http://www.debian-multimedia.org/dists/lenny/Release.gpg Could not connect to www.debian-multimedia.org:80 (91.121.86.213). - connect (111 Connection refused)
W: Failed to fetch http://www.debian-multimedia.org/dists/lenny/main/i18n/Translation-en_ZA.bz2 Could not connect to www.debian-multimedia.org:80 (91.121.86.213). - connect (111 Connection refused)
W: Failed to fetch http://debian-multimedia.org/dists/lenny/Release.gpg Could not connect to debian-multimedia.org:80 (91.121.86.213). - connect (111 Connection refused)
W: Some index files failed to download, they have been ignored, or old ones used instead.
W: You may want to run apt-get update to correct these problems
nul-mokoena:~#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.