Visit Our UNIX and Linux User Community


simple Unix commands


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers simple Unix commands
# 1  
Old 08-15-2002
simple Unix commands

Just hoping someone can help me out. I am looking for what should be simple commands to enter for this information:

List of all Unix users (is this etc/passwd?)
List of all users' access capabilities (is this etc/group?)
Password settings (e.g., password expiration interval, minimum password length, # of unsuccessful login attempts granted, etc.)

If someone could help me out with this ASAP, I would greatly appreciate it!

Thanks so much!!!
# 2  
Old 08-15-2002
1. List of users
/etc/passwd would show local users
% cat /etc/passwd
If you are running NIS then you would have to do
% ypcat passwd
to show all NIS users. If the OS supports NIS+ the command is a little different - check your /etc/nsswitch.conf to see if either service is being used.

2.

3. Check /etc/default/passwd for settings and man page for info
% man -s4 passwd
% cat /etc/default/passwd


Sorry got to go - maybe someone else can pick up your second question.

Opps, sorry - that should have been
% man -s4 shadow
for info on forcing changes.

As far as question 2 - I agree with the next post - more info is needed. If a user belongs to a certain group and that group has access to a directory, then that could be thought of as access.

Again, if you are running NIS there could be more control on who gets access - a netgroup file could be in place which allows certain users access to the server and other can not login.

Last edited by RTM; 08-16-2002 at 12:16 PM..
# 3  
Old 08-16-2002
/usr/bin/admintool


This may help as well. If you are not very comfortable with using commands on the command line. This will tell you all the info you need about users on your system. What do you mean by "access capabilities"? Please be a little more specific.

psprocida
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #326
Difficulty: Medium
Time on Computers is commonly referred to as GNU Time.
True or False?

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Need help with simple Linux commands

Hey guys, I need help with simple unix commands. I'm a newbie to Unix and don't know these commands. Any help is appreciated. 1. Logon to Linux. 2. Create a directory "Unix" under your home directory. Command(s): …………………………………………. 3. Create four... (1 Reply)
Discussion started by: loverangerguy
1 Replies

2. UNIX for Dummies Questions & Answers

Need help with simple Linux commands - NEWBIE here!

Hey guys, I need help with simple unix commands. I'm a newbie to Unix and don't know these commands. Any help is appreciated. 1. Logon to Linux. 2. Create a directory "Unix" under your home directory. Command(s): …………………………………………. 3. Create four... (1 Reply)
Discussion started by: loverangerguy
1 Replies

3. UNIX for Dummies Questions & Answers

help with simple terminal commands

i am at home with a windows xp home, and i am using putty terminal to access my linux mathlab account, my task is to compile and run a C program, called a.c, i used gcc -Wall -g -o mycode a.c to compile it into a mycode file now when i want to run it, i was told i had to use $... (2 Replies)
Discussion started by: omega666
2 Replies

4. Shell Programming and Scripting

Simple script editing text files and running commands

Okay this will probably have multiple parts to it but I don't really want to trouble you guys with more help because I'm a total noob so I can just do the first part by hand (it's just editing a few hundred lines of text in a file; I have to do the same thing on each line and I'm sure there's a... (2 Replies)
Discussion started by: guitarscn
2 Replies

5. UNIX for Dummies Questions & Answers

awk simple commands merge

Is there nice awk code for merging the following commands and do the last task? input1 ab100 xxx 100 blahblah + 1000 ab100 yyy 90 blahblah + 1000 ef390 ggg 200 blahblah - 2000 ef390 aaa 100 blahblah - 2000 df888 ttt 300 ... (5 Replies)
Discussion started by: ruby_sgp
5 Replies

6. Red Hat

Writing simple python setup commands

Building software in most languages is a pain. Remember ant build.xml, maven2 pom files, and multi-level makefiles? Python has a simple solution for building modules, applications, and extensions called distutils. Disutils comes as part of the Python distribution so there are no other packages... (0 Replies)
Discussion started by: Linux Bot
0 Replies

7. UNIX for Dummies Questions & Answers

running a simple script file with multiple commands

I'm trying to run a script file with multiple commands that I would normally type into the command line. The commands are: #!/bin/bash diff Test1.o0 /usr3/ronelso4/Desktop/verificationKPC/Test1.o0 > differences2 diff Test1a.o0 /usr3/ronelso4/Desktop/verificationKPC/Test1a.o0 >> differences2... (1 Reply)
Discussion started by: knelson
1 Replies

8. Shell Programming and Scripting

Simple rm commands in my server

Hi all, I have PLESK to manage my virtual dedicated server. The most recent version left a favicon.ico file in all my domains and subdomains. I want to delete them without having to go into each individual folder. So I'd like to remove favicon.ico from every subfolder of /var/www/vhosts/ ... (4 Replies)
Discussion started by: chickenhouse
4 Replies

9. Shell Programming and Scripting

Modifying simple commands to create a script

Can anyone direct me to a resource that explains scripting in simple terms? I have visited many sites and browsed this forum and have yet to find simple explanations. (8 Replies)
Discussion started by: rocinante
8 Replies

10. UNIX for Dummies Questions & Answers

simple commands

Can anybody help me how to display a list of unix commands. I have an account in unix,just start to use it, but don't know how (1 Reply)
Discussion started by: aningsabah
1 Replies

Featured Tech Videos