LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 11-17-2010, 11:35 AM   #1
stronium
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: -7
Arrow Beginners Unix Assignment- Will PayPal $$


Delete please

Last edited by stronium; 11-17-2010 at 01:49 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 11-17-2010, 11:45 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,450

Rep: Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100
Quote:
Originally Posted by stronium View Post
Who can help with the following program?

Assignment : Secure Server-Client Applications
You are asked to implement an authentication server that authorizes visitors to login with a valid user ID and password. The server has to be implemented with POSIX threads.

The functionality of the client is that it connects to a server on a specified port number, reads user command line input and sends it to the server. It then waits for the server to reply and writes the reply as text on the screen. There are two types of commands. One is a request to read the list of files on the server, and display the result on client’s screen. The other is a request to read the contents of the assigned file that saved on server, and then displays the result on client’s screen.

The server simply waits for connections, refuses the connection request without valid user ID and password. If the user has passed the authentication process, the server reads input and sends proper responding back to the client in a cyclic fashion until the client closes the connections.

1. Create at least two non-empty text file called doc1.txt and doc2.txt on the server.
2. Create two users, user 1 ID: admin, password: admin; user 2 ID: user, password: user.
3. After log in with correct user ID and password, both of the users can display the list of files on server. User admin can read both of the files, while user can read doc1.txt only.
4. A visitor without correct user ID and Password cannot read the list of files on the server.
Here's a radical idea: DO YOUR OWN HOMEWORK, and don't pay people to do it for you. If you want to remain ignorant, then don't bother going to school in the first place.
 
3 members found this post helpful.
Old 11-17-2010, 01:08 PM   #3
wje_lq
Member
 
Registered: Sep 2007
Location: Mariposa
Distribution: FreeBSD,Debian wheezy
Posts: 811

Rep: Reputation: 178Reputation: 178
duly reported
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: The Tiny Unix And Linux Shell Crash Course For Beginners LXer Syndicated Linux News 0 04-30-2009 11:40 AM
Will pay 20$ in paypal to someone who can help soulxcavtor Linux - Software 6 06-11-2006 09:52 PM
Unix Book for Beginners (Not Linux... Unix) suse2166 General 6 11-25-2004 11:46 AM
ebay and paypal GraemeK General 7 02-14-2004 06:35 AM
May no longer be able to take PayPal jeremy LQ Suggestions & Feedback 16 09-13-2003 01:16 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:14 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration