LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-03-2004, 10:49 PM   #1
Obie
Member
 
Registered: Apr 2004
Distribution: Red Hat
Posts: 290

Rep: Reputation: 30
Group Security


I understand Linux creates and maintains a set of default groups e.g. root, wheel, etc.

1) Which groups do I maintain and what are the specific purposes of each group?

2) How can I make them more secure or don't I bother?

3) I understand that users by default are given a home directory when I run the command useradd.
3.1) Which commands should a normal user never be given?
3.2) If that user wishes to install a particular software, where would it be installed?
3.3) Is there a way I can run the command useradd and designate from the start what group the user belongs to?
3.4) How do I make certain that one user never access the folder of another?
3.5) Can I have logs for each specific user and how do I maintain these?

Thank you.
 
Old 06-24-2004, 06:33 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I understand Linux creates and maintains a set of default groups e.g. root, wheel, etc.

1) Which groups do I maintain and what are the specific purposes of each group?
On a general usage system (that is, not a production server) user ID's over 500 usually are the unprivileged user accounts, those between 1 and 500 are system accounts. System accounts are necessary for instance to control some processes' file/dir access or to help a root-owned process drop privileges and run under that account. Wheel is a privileged account to let lesser privileged users perform some system (maintenance) tasks. Some system accounts are created when installing applications. As long as they serve a purpose they do not need any maintenance after hardening AFAIK.


2) How can I make them more secure or don't I bother?
Configure and make sure process use those accounts (don't run as root), make sure their login shell is disabled, make sure their files and dirs have appropriately strict permissions set, set process limits and quota and chroot where necessary. Spose I usually forget some stuff, please check the LQ FAQ: Security references under "hardening".


3.1) Which commands should a normal user never be given?
Those that allow users to create, destroy or alter system/other users resources, processes, process credentials or files, some setuid/setgid root binaries. Depends on what the box purpose is, what's installed and what access a user should be allowed.


3.2) If that user wishes to install a particular software, where would it be installed?
I wouldn't allow users to install and run software without checking if it's a risk to the system. An easy way to enforce that would be to mount publicly writeable partitions (/tmp, /var/tmp) and /home with the noexec mount flag (will break some stuff) and patch the kernel with the GRSecurity patch and enable TPE. This will allow users to only execute binaries inside $PATH.


3.3) Is there a way I can run the command useradd and designate from the start what group the user belongs to?
Sure. Read the manual please.


3.4) How do I make certain that one user never access the folder of another?
Chmod 0700 /home/user0 . Note this doesn't work for toplevel dirs like /etc.


3.5) Can I have logs for each specific user and how do I maintain these?
Logging what? There's a patch for Bash. Are you going to run a shell server?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
security> adding user or root to a group eeried Linux - Newbie 6 08-08-2008 05:10 AM
well, there's info written inside /etc/group. accidentally del /etc/group in RedHat9 karmakid Red Hat 1 07-27-2005 10:27 PM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM
[alert] (22) Invalid argument : setgid : unable to set group id to Group 4294967295 Niraj Linux - Networking 1 12-13-2001 06:58 AM
How to restart the group security? explorer1979 Linux - Security 0 09-02-2001 10:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration