icedogchi
February 26th, 2007, 02:48 PM
Hello all, I looked around but I didn't find the information I was after, so I was hoping someone might answer these security questions for me or point me in the right direction.
First, I'm still green on Ubuntu, but I am trying to make sure that my computer is secure before I open it to the outside world.
I see that /var, /root, /bin, etc are owned by the user root and the group root, but my question is on the permissions. All of these high-level folders have rwxr-xr-x and I'm not certain they should have.
1) Why should the groups and others have read and execute permission to these folders?
Second, on the Ubuntu install, root is hidden and can only be accessed via sudo from the priviledged user that was created on install. I normally log in and do stuff as this privilidged user.
2) Is that acceptable, or should I create another user for myself that has more restricted access?
I created a user in its own group to run Tomcat so that it does not run as root. I changed all of the folder and file permissions I could find to be owned by this user and group. All others have no permissions.
3) This is a good idea, right?
Apache2 runs 4 processes, 3 as www-data and 1 as root.
4) I'm not sure why there are 4 processes and 1 is running as root, any thoughts?
5) Finally, are FTP, rlogin, and rcp disabled when I install OpenSSH, or is there a manual way to disable those?
I realize that is quite a few questions and I appreciate your responses!
-jt
First, I'm still green on Ubuntu, but I am trying to make sure that my computer is secure before I open it to the outside world.
I see that /var, /root, /bin, etc are owned by the user root and the group root, but my question is on the permissions. All of these high-level folders have rwxr-xr-x and I'm not certain they should have.
1) Why should the groups and others have read and execute permission to these folders?
Second, on the Ubuntu install, root is hidden and can only be accessed via sudo from the priviledged user that was created on install. I normally log in and do stuff as this privilidged user.
2) Is that acceptable, or should I create another user for myself that has more restricted access?
I created a user in its own group to run Tomcat so that it does not run as root. I changed all of the folder and file permissions I could find to be owned by this user and group. All others have no permissions.
3) This is a good idea, right?
Apache2 runs 4 processes, 3 as www-data and 1 as root.
4) I'm not sure why there are 4 processes and 1 is running as root, any thoughts?
5) Finally, are FTP, rlogin, and rcp disabled when I install OpenSSH, or is there a manual way to disable those?
I realize that is quite a few questions and I appreciate your responses!
-jt