Help Needed With Mandrake Linux 9.0


Recommended Posts

Hi there

I need some help with my Linux installation. Currently I have two user accounts, root and my own username. I tried installing Mozilla 1.2 under my username but it says permission denied when it tries to create the directory. How can I change user permissions so that I can install programs no matter which user I log in as?

I am trying to run my computer as a webserver. I cannot start Apache under my own username as it cannot find the httpd file. I went to /etc/init.d/ and typed in "./httpd restart" but there was an error message. However, logging in as root seem to work as the apache webserver service did restart. How can I run Apache under my own username? And is it possible to check my own IP when I connect to the internet? I am using ADSL and the ISP will give me random IP addresses. ( I am setting up my computer as a web server in order for my friend to download graphic files ).

Thanks

Link to comment
Share on other sites

Currently I have two user accounts, root and my own username. I tried installing Mozilla 1.2 under my username but it says permission denied when it tries to create the directory. How can I change user permissions so that I can install programs no matter which user I log in as?

Why would you want to do that? Just login as root at all the time or install/use sudo.

I am trying to run my computer as a webserver. I cannot start Apache under my own username as it cannot find the httpd file. I went to /etc/init.d/ and typed in "./httpd restart" but there was an error message. However, logging in as root seem to work as the apache webserver service did restart. How can I run Apache under my own username?

Same as my answer above. I have a question for you. Do you know about su command? If no, check in the man su, so each time when you want to install or whatever, then you can use the su command. Just keep one terminal window open at all the time and login as root by using su. Then, leave it until you need to use it to install or whatever. What you are asking for is insecure. Why insecure? Because, when your user account have the ability of many things. Virus, worm and etc attack to your user and will have the ability to take over the control. That's why Windows always have been insecure.

And is it possible to check my own IP when I connect to the internet? I am using ADSL and the ISP will give me random IP addresses. ( I am setting up my computer as a web server in order for my friend to download graphic files ).

Here are different way to do that..

ifconfig

arp -a

netstat -n eth0

perl -e 'print "$ENV{REMOTEHOST}"'

Link to comment
Share on other sites

as a user, you can only write into your home-directory (/home/foo for example), so if you want to install mozilla you might do that using sudo ./mozilla-installer (you are prompted for a password, just enter your user password).

the same for httpd: sudo /etc/init.d/httpd start

Link to comment
Share on other sites

Evil2000 and mezz: Thanks!

I just started using Linux - not even sure of the commands to use, and where to find files etc. Got used to a GUI environment, my DOS days are over long ago. :)

I will try what both of you had recommended.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.