The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Carreer:Networking Programming in Unix (C programming Language) vibhory2j UNIX for Dummies Questions & Answers 5 09-05-2008 04:57 PM
Check any MQ is up or down using shell programming rinku Shell Programming and Scripting 1 08-09-2007 04:52 AM
Script to check for a file, check for 2hrs. then quit mmarsh UNIX for Dummies Questions & Answers 2 09-16-2005 11:46 AM
Check lists for Unix Shell Programming srikanth_ksv Shell Programming and Scripting 2 08-08-2005 03:40 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-15-2001
ober5861's Avatar
Registered User
 

Join Date: Jul 2001
Location: Gettysburg, PA
Posts: 116
Arrow Programming Forum - Check it out!

To anyone who is really into programming, and not so much just unix/linux, you may want to check out the following site:

http://www.cprogramming.com/cgi-bin/cboard/index.php

It is a new forum with the same format as this one. It actually nearly looks the same.
Forum Sponsor
  #2  
Old 08-18-2001
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,441
Thanks for the link!!
  #3  
Old 06-05-2008
Registered User
 

Join Date: Jun 2008
Posts: 1
Post unix utility

Hey how do I create a UNIX utility which in C?

If answer, reply.
  #4  
Old 06-08-2008
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,609
Hey guyz,

I cannot access the posted link !
  #5  
Old 06-08-2008
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,466
Quote:
Originally Posted by matrixmadhan View Post
Hey guyz,

I cannot access the posted link !
it's nearly 7 years old... so maybe it's offline
  #6  
Old 06-08-2008
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,590
Yes, they changed the software and moved the url of the board.

C Board - Powered by vBulletin
  #7  
Old 09-05-2008
Registered User
 

Join Date: Sep 2008
Posts: 2
"" need this code in C language for UNIX"
Write or study a small program that mimics the most common login procedures in UNIX.
You have two options here. Either, you write it yourself according to the specification
below, or you copy the file
/cab/cestud/work/edu/course/EDA263_Computer_Security/
lib/login_linux/login_linux.c into your home directory. If you choose to write
it yourself the following should be implemented.
- The program begins with displaying ”login:” and takes the username as input.

- Then the program writes ”Password:” and waits for the password to be entered,
which should not be visible on the terminal (use the function getpass(3) that
among other things will see to that the text is not ”echoed” on the terminal).
- The program queries the system’s user database to see if the username exists. If
this is the case it encrypts the entered password (with a known algorithm) and
ensures it corresponds to the stored encrypted password belonging to the actual
user. Suitable library routines are getpwnam(3), crypt(3) and strncmp(3).
- If the username does not exist, or if the password is wrong, the program displays
”Login incorrect” and restarts from the beginning, otherwise it writes something
like ”Welcome to this System!” and terminates.
Test that your program works by compiling and running it.
Google The UNIX and Linux Forums
Closed Thread

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:28 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0