LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   basic qs after install (https://www.linuxquestions.org/questions/linux-newbie-8/basic-qs-after-install-562334/)

jagguy 06-16-2007 07:58 PM

basic qs after install
 
Hi,
I just installed linux.

q)Can i boot up linux and not have to login and just have SU priveledges? sinec i am the only 1 using this.

q) I want o load my fat32 on start up, so do i add the mount command that does this in the etc/fstab file? Is the command exactly the same as doing it manually on the terminal because i think i remember it is a little different?

q)I want o boot up and have winxp the deafult boot up and fedora as the 2nd option if i decide, where can i change GRUB settings.

q)What about mounting my DVD RD/DVD RW on boot up how can i do this?

Junior Hacker 06-16-2007 10:08 PM

Quote:

q)Can i boot up linux and not have to login and just have SU priveledges? sinec i am the only 1 using this.
Depends on which Linux distribution you installed.
Quote:

q) I want o load my fat32 on start up, so do i add the mount command that does this in the etc/fstab file? Is the command exactly the same as doing it manually on the terminal because i think i remember it is a little different?
Type: fdisk -l in a terminal to see what device your Fat32 partition is, if it is /dev/hda1, add this entry in /etc/fstab and make a directory called windows (or whatever you prefer to call it, just make it the same in /etc/fstab).
Code:

/dev/hda1      /windows      vfat      rw,noatime,uid=500,gid=500,user  0 0
Code:

#mkdir /windows
Make sure your user UID and GID are 500, if they are something else, put the number in place of the 500's in that line.
Quote:

q)I want o boot up and have winxp the deafult boot up and fedora as the 2nd option if i decide, where can i change GRUB settings.
In /boot/grub/menu.lst, change the default=x to the Windows entry, grub starts counting from 0, so if the default is set to 0, it will boot the first entry in the list, every entry with the word "title" is an entry, if Windows is the third "title" item, change the default to "default=2".
Quote:

q)What about mounting my DVD RD/DVD RW on boot up how can i do this?
Depends, which distribution did you install?, usually you would add "auto" to it's entry in /etc/fstab next to the part that says "user" in the above sample for you Fat32 entry. Some thing like "user,auto", if the entry for the drive does not have "user" as an option, don't add it, just put it next to what ever is in that part of the entry with a comma and no spaces. Keep in mind, you will get boot time errors if there is no disk in the drives.

chrism01 06-17-2007 01:37 AM

Re your 1. please don't do that.
If you are on the net (as you seem to be) then you can be compromised... even on Linux.
In fact of course, any 'external' src (eg CD, USB stick) could be bad...
Also, unlike MS, it's almost unheard of for a user level app to need to be run as root.

Junior Hacker 06-17-2007 02:05 AM

chrism01
I guess it's OK to warn people, but I think it's crossing the line when you tell people, "please don't do that". Unless, you are that person's parent or guardian.
Read the thread link below, pay special attention to post #13.
jagguy
If you have KDE desktop, you will find a way to have the option to log in as root in the thread link below.
http://www.linuxquestions.org/questi...d.php?t=498711

EDIT: Some people are smart enough to have full back ups including the OS, I'm one of them, and when I installed a virus knowing it was probably a virus in desperation when trying to retrieve lost data in Windows a couple months ago, I had no fear because it only takes 8 minutes to wipe that Windows partition with zeros and make a new partition in it's place and load an image of the fresh clean fully updated installation. There's nothing on the internet that can render my hardware useless, as far as all the binary code is concerned, it's all backed up on external USB and easily restored.
Others like myself, may be offended by such remarks.

jagguy 06-20-2007 05:14 AM

q)I changed the boot=yes in ifcgf-wan0 file or something like that and the internet it does boot up at runtime (any other settings i need). Now my line can drop becaus eit is wireless like on winxp but I cant get it back easy . On winxp i just r-click and repair it. What can i do ?


q)what about apache/mysql/php I want to run these?

q) can i connect to windows files with linux on another pc via cable network?

nx5000 06-20-2007 05:48 AM

Quote:

In fact of course, any 'external' src (eg CD, USB stick) could be bad...
CD, USB sticks are by default mounted nosuid noexec. You need to be root to remount with different options.

(if we are talking about the same thing)


Security rule #1: Least privilege: Minimize applications running as priviledge user.

I hope people will go on warning people about that. It is a bad habit. The form on how to say it is not always easy but it's better than nothing.

chrism01 06-20-2007 07:07 AM

That's why I said 'Please', it's only a recommendation, not an imperative. :)
nx5000: well, as you know, if he's logged in as root, then anything he runs has root unless it's set uid to a non-priv user ...
It's definitely the OP's option to do whatever he wants though.

jagguy 06-20-2007 08:54 PM

i am the only person using the OS so i dont see why i cant root login.
I still dont know ow to do this to be honest.

q) does anyone know these

q)I changed the boot=yes in ifcgf-wan0 file or something like that and the internet it does boot up at runtime (any other settings i need). Now my line can drop because it is wireless like on winxp but I cant get it back easy . On winxp i just r-click and repair it. What can i do ?


q)what about apache/mysql/php I want to run these but i cant see them installed?

q) can i connect to windows files with linux on another pc via cable network?

q) how can i find if apache/mysql/php software is installed? Do I need to run a find or is there an easier way?

q)some commands you need to write /sbin/.... in front. Can I add this to the PATH so i dont need to do it?

Emerson 06-20-2007 09:03 PM

You do not run as root for many, many reasons. Some of them are mentioned here:
http://www.linuxquestions.org/questi...40#post2572040

jagguy 06-21-2007 05:40 AM

I downloaded apache from http://httpd.apache.org/download.cgi. Version 2.2

Now I have linux and all i see is unix source code 'no binaries?'.

I download this and extract it using
tar -xvzf httpXXX.tar.gz

I get an unexpected EOF error with extracted source code (many get extracted then it quits)and also get very very VERY annoyed at all this messing around for such a common task.

I have NO idea what to do next as I couldnt find the docs. I just want to download from the apache site and install apapche with php5 and mysql.

I need help with apache first and what do i do?



I found the binaries and it still doesnt work

root@localhost install]# rpm -i httpd-2.059-1.i386.rpm
error: open of httpd-2.059-1.i386.rpm failed: No such file or directory
[root@localhost install]# rpm -i httpd-2.0.59-1.i386.rpm
warning: httpd-2.0.59-1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 751d7f27
error: Failed dependencies:
libapr-0.so.0 is needed by httpd-2.0.59-1.i386
libaprutil-0.so.0 is needed by httpd-2.0.59-1.i386
libcrypto.so.4 is needed by httpd-2.0.59-1.i386
liblber-2.2.so.7 is needed by httpd-2.0.59-1.i386
libldap-2.2.so.7 is needed by httpd-2.0.59-1.i386
libssl.so.4 is needed by httpd-2.0.59-1.i386

I just 2 hours on all of this and no idea on how to get this to work?

chrism01 06-21-2007 06:24 AM

If you told us what your distro (version) of Linux is, we could advise you better.
Just about all modern ones have built-in GUI tools to install (almost) anything you need, and they automatically handle dependencies.
For what you're asking, you shouldn't need to download anything by hand, especially src files.

nx5000 06-21-2007 09:30 AM

Quote:

Originally Posted by chrism01
nx5000: well, as you know, if he's logged in as root, then anything he runs has root unless it's set uid to a non-priv user ...

Yes. What I meant is that the security concept is well locked-up.
One generally login as non priv.
Even inserting a key formatted as ext2 containing suid-root will not compromise the system and won't enable privilege escalation because by default its nosuid,noexec (unless you are root and then you can remount but in this case.. oh well you got it lol)

Emerson 06-21-2007 10:06 AM

Thats a weird thing every x-th newbie wants to run as root and starts arguing when told not to. If there is "Do not jump in, danger!" posted at a river - how many would argue with that? How many would jump in? There is long-long list of reasons why one should not run as root, no newbie would listen all of them, too boring. Thus I'll give only two of them:

1. Imagine there is a flaw in your web browser, you visit a malicious web site and it wants to install a keylogger into your box. If you run as root then that's it, your identity is stolen. If you run as user - it is practically impossible to install a keylogger with user rights, your identity is safe even if your account is breached.
2. DDoS attacks are made using spoofed IP address. Your computer is part of zombie network - without you knowing it - and it sends out a spray of SYN packets to a list of web servers pretending these packets come from victim's computer at address 4.3.2.1. Those servers reply to 4.3.2.1 creating a flood which shuts down the victim server and enables the attacker to demand ransom. Your box cannot participate in this crime when run as user because spoofing an IP address requires access to the raw sockets - something only root has access to!

jagguy 06-21-2007 06:08 PM

I am using fedora7 and really need help with apache. I downloaded src which faile dto extact and binaries which again failed to install.

So this is really bugging me as in dont know what to do because apache fails.

I dont know if apache is already installed ( i dontbelieve so) and how to configuure php/mysql with apache?
I spent a few hours getting nowhere so far.

Emerson 06-21-2007 06:32 PM

Reading documentation for your distro makes life much easier, did you read it?

http://docs.fedoraproject.org/yum/en/


All times are GMT -5. The time now is 01:22 AM.