Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Need help showing which network protocol users use. Post 302590523 by maximillian.g on Monday 16th of January 2012 02:41:50 PM
Old 01-16-2012
Is there any way to do this from a restricted user standpoint or does this have to be ran in root? Here are my directory listings. No wtmp found.

Code:
maximillian.gardner@syccuxfs01:/> dir
total 31
-rw-------   1 root root    0 2007-08-29 08:21 aquota.group
-rw-------   1 root root    0 2007-08-29 08:21 aquota.user
drwxr-xr-x   2 root root 2912 2012-01-14 02:15 bin
drwxr-xr-x   3 root root  624 2011-11-23 11:31 boot
drwxr-xr-x  10 root root 7080 2012-01-14 11:24 dev
drwxr-xr-x  84 root root 8920 2012-01-16 10:46 etc
drwxr-xr-x  12 root root  344 2011-03-21 14:13 home
drwxr-xr-x  12 root root 4592 2012-01-14 02:15 lib
drwxr-xr-x   2 root root   48 2010-04-20 06:45 local
drwxr-xr-x   3 root root   72 2011-11-28 06:50 media
drwxr-xr-x   2 root root   48 2011-11-23 10:55 mnt
drwxr-xr-x   8 root root  184 2009-09-05 03:43 opt
dr-xr-xr-x 101 root root    0 2011-12-27 09:44 proc
drwx------  35 root root 2064 2012-01-12 09:31 root
drwxr-xr-x   4 root root 9240 2012-01-05 02:07 sbin
drwxr-xr-x   4 root root   96 2009-09-05 03:43 srv
drwxr-xr-x  11 root root    0 2011-12-27 09:44 sys
drwxrwxrwt  18 root root 4032 2012-01-16 11:43 tmp
drwxr-xr-x  16 root root  432 2011-12-06 02:11 usr
drwxr-xr-x  17 root root  416 2011-03-21 07:27 var
maximillian.gardner@syccuxfs01:/> cd var
maximillian.gardner@syccuxfs01:/var> dir
total 8
drwxr-xr-x  8 root  root   224 2009-09-05 03:43 adm
drwxr-xr-x 11 root  root   288 2009-09-05 03:43 cache
drwxrwxr-x  2 games games   48 2009-09-05 03:43 games
drwxr-xr-x 41 root  root  1136 2012-01-16 11:18 lib
drwxrwxr-t  5 root  uucp   120 2012-01-14 02:16 lock
drwxr-xr-x 11 root  root  6232 2012-01-15 11:15 log
lrwxrwxrwx  1 root  root    10 2011-03-21 07:27 mail -> spool/mail
drwxr-xr-x  4 root  root    96 2009-09-05 03:43 opt
drwxr-xr-x 17 root  root   952 2012-01-15 11:15 run
drwxr-xr-x 12 root  root   328 2011-03-21 07:27 spool
drwxrwxrwt  2 root  root    80 2012-01-16 11:18 tmp
drwx------  2 root  bin    264 2008-03-09 14:25 webmin
drwxr-xr-x  5 root  root   152 2011-03-21 07:27 X11R6
drwxr-xr-x  3 root  root   104 2007-07-18 08:31 yp
maximillian.gardner@syccuxfs01:/var> cd adm
maximillian.gardner@syccuxfs01:/var/adm> dir
total 7
drwx------ 7 root root  168 2011-03-18 04:01 autoinstall
drwx------ 4 root root   96 2011-03-18 07:04 backup
drwxr-xr-x 2 root root 5672 2012-01-01 02:21 fillup-templates
drwxr-xr-x 8 root root  240 2011-11-28 06:59 mount
drwxr-xr-x 2 root root  984 2011-10-07 02:20 perl-modules
drwxr-xr-x 4 root root  200 2011-05-13 10:12 SuSEconfig
maximillian.gardner@syccuxfs01:/var/adm>

~Thank you for the replies!
 

7 More Discussions You Might Find Interesting

1. IP Networking

RH 9 and Network Time Protocol

I have a small program written in C using winsock v1, that uses a unix host to get the time. I have two machines networked, one windows, the other red hat 9. The windows machine will request the time off the RH one. How can I configure red hat to reply to the time request, i.e act as an... (1 Reply)
Discussion started by: jaredGalen
1 Replies

2. OS X (Apple)

change network time protocol

by default, a mac syncs its time and date with time.apple.com (located system prefs->Date&Time). Is there a way in unix to change it to another address? my attempts to use ntpdate and ntpd have failed. (4 Replies)
Discussion started by: CBarraford
4 Replies

3. Shell Programming and Scripting

Showing offline users

Hi, Is there any command for showing offline users? The only way I can think of doing it (as i cant find a command) is getting a list of all the online users, and comparing it to /etc/passwd, anything that is in /etc/passwd and not in the users file will be offline users. But I have no... (4 Replies)
Discussion started by: mikejreading
4 Replies

4. Shell Programming and Scripting

bash script for showing last users

Hi! I'm new in scripting and I need some help with one simple script. I have to write a program that shows in a predetermined period (using "last" command), to draw up a list of users who have used the machine during this period. Each user to indicate how many sessions it has been during this... (9 Replies)
Discussion started by: vassu
9 Replies

5. Shell Programming and Scripting

want know about network protocol testing

Hi guys, i want to know about network protocol testing. 1. What is network protocol testing? 2. Whats the role of network protocol tester? 3. Is there good future scope in network protocol testing field? 4. Just give me a example of protocol testing. 5. How it relates to perl or unix? Thanks... (0 Replies)
Discussion started by: rangarasan
0 Replies

6. Red Hat

Showing all users in 'users' and 'top' commands

Hi All, I work in a multi user environment where my school uses Red Hat Linux server. When I issue commands such as "top" or "users", I get to see what others are doing and what kinds of applications they are running (even ps -aux will give such information). "users" will let me know who else is... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

7. Solaris

Network interface showing wrong configuratoin

on both of my T2000 I am seeing same values of 100Mbps for e1000g0 ethernet port. i know all four ethernet ports on T2000 are gigabit ports so why is my first link showing as 100Mbps and how can i correct it? # dladm show-dev e1000g0 link: up speed: 100 Mbps ... (1 Reply)
Discussion started by: aliyesami
1 Replies
dsenableroot(8) 					    BSD System Manager's Manual 					   dsenableroot(8)

NAME
dsenableroot -- enables or disables the root account. SYNOPSIS
dsenableroot [-d] [-u username] [-p password] [-r rootPassword] DESCRIPTION
dsenableroot sets the password for the root account if enabling the root user account. Otherwise, if disable [-d] is chosen, the root account passwords are removed and the root user is disabled. A list of flags and their descriptions: -u username Username of a user that has administrative privileges on this computer. -p password Password to use in conjunction with the specified username. If this is not specified, you will be prompted for entry. -r rootPassword Password to be used for the root account. If this is not specified for enabling, you will be prompted for entry. EXAMPLES
-dsenableroot Your username will be used and you will be queried for both your password and the new root password to be set to enable the root account. -dsenableroot -d Your username will be used and you will be queried for only your password to disable the root account. -dsenableroot -u username -p userpassword -r rootpassword The supplied arguments will be used to enable the root account. -dsenableroot -d -u username -p userpassword The supplied arguments will be used to disable the root account. Mac OS August 08 2003 Mac OS
All times are GMT -4. The time now is 03:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy