?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help

?
?php help
Author:??(---.cc.swin.edu.au)
Date:???06-03-03 17:50

1. Count and display the number of users in each Linux group. Present this in a table format, in order of group size. Do not count users in user private groups (eg where fredn belongs to and is only member of the group fredn).

2. Display a list of all groups in alphabetical order. Allow user to select one group, then display the names of the members in that group.

3. From the above list of names. allow user to select a name and display the person's full name (from the comment field) and the number of successful SSH logins.

passwd.txt, group.txt and secure.txt as your source data, the are displayed below to show what format there in, they data is an example

Can Anyone help >? , ive got no idea

secure.txt consists of
May 18 11:02:05 cit1 sshd[2296]: Accepted password for root from 136.186.252.104 port 1205 ssh2
May 18 11:02:08 cit1 sshd[2296]: subsystem request for sftp
May 18 11:41:33 cit1 sshd[2296]: Received disconnect from 136.186.252.104: 11: Disconnect requested by Windows SSH Client.
May 18 15:31:08 cit1 sshd[2637]: Accepted password for scottd from 136.186.252.112 port 1077 ssh2

passwd.txt consists of
lauram:x:1852:1854:Laura Marchetti,workshop,2003:/home/student/workshop/lauram:/bin/bash
annm:x:1853:1855:Ann Millerd,workshop,2003:/home/student/workshop/annm:/bin/bash
jspencer:x:1854:1856:John Spencer,workshop,2003:/home/student/workshop/jspencer:/bin/bash
jackass:x:1855:1857:jack anderson,whn2,2003,:/home/student/whn2/jackass:/bin/bash

group.txt consits of
jspencer:x:1856:
jackass:x:1857:
phpbb:x:505:
l2n1:x:1858:shanebe,danb,glennf,timh,randall,keegan,mattk,scottl,xiuhua,davidb,gared,craigj,markoj,danp,raed,davids,stephenp,simonl,clarep,kitc,simong
w2n1:x:1859:senadc,alanc,georgeg,paulg,troyg,johnny,punnh,seank,davidm,srisn,simonr,pablos,philt,philb,ishwinder,elizm,nicole,hendrikz,davidbo,owend,taig,tims,kimf,francism,

?Topics Author? Date
?php help??new
Keegan Judd 06-03-03 17:50?
Go to Top??|??Go to Topic??|??Flat View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
??wrote: > > 1. Count and display the number of users in each Linux > group. Present this in a table format, in order of group > size. Do not count users in user private groups (eg where > fredn belongs to and is only member of the group fredn). > > 2. Display a list of all groups in alphabetical order. Allow > user to select one group, then display the names of the > members in that group. > > 3. From the above list of names. allow user to select a name > and display the person's full name (from the comment field) > and the number of successful SSH logins. > > passwd.txt, group.txt and secure.txt as your source data, the > are displayed below to show what format there in, they data > is an example > > Can Anyone help >? , ive got no idea > > secure.txt consists of > May 18 11:02:05 cit1 sshd[2296]: Accepted password for root > from 136.186.252.104 port 1205 ssh2 > May 18 11:02:08 cit1 sshd[2296]: subsystem request for sftp > May 18 11:41:33 cit1 sshd[2296]: Received disconnect from > 136.186.252.104: 11: Disconnect requested by Windows SSH > Client. > May 18 15:31:08 cit1 sshd[2637]: Accepted password for scottd > from 136.186.252.112 port 1077 ssh2 > > passwd.txt consists of > lauram:x:1852:1854:Laura > Marchetti,workshop,2003:/home/student/workshop/lauram:/bin/bash > annm:x:1853:1855:Ann > Millerd,workshop,2003:/home/student/workshop/annm:/bin/bash > jspencer:x:1854:1856:John > Spencer,workshop,2003:/home/student/workshop/jspencer:/bin/bash > jackass:x:1855:1857:jack > anderson,whn2,2003,:/home/student/whn2/jackass:/bin/bash > > group.txt consits of > jspencer:x:1856: > jackass:x:1857: > phpbb:x:505: > l2n1:x:1858:shanebe,danb,glennf,timh,randall,keegan,mattk,scottl,xiuhua,davidb,gared,craigj,markoj,danp,raed,davids,stephenp,simonl,clarep,kitc,simong > w2n1:x:1859:senadc,alanc,georgeg,paulg,troyg,johnny,punnh,seank,davidm,srisn,simonr,pablos,philt,philb,ishwinder,elizm,nicole,hendrikz,davidbo,owend,taig,tims,kimf,francism, ">??

Provided By
Phorum