This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

chsh


I got bored this morning, so I slapped together a chsh (change shell) program.

A few design notes (in other words, it was designed to work this way, and they
are not bugs):
 1) The program will happily accept (and output) bad paths. So:
     chsh /boo/hoo
    will change the invokers shell to "/boo/hoo" in the output.
 2) chsh non-existant-user /bin/bash will do nothing. The user
    must exist in /etc/passwd, AND the spelling must match
    EXACTLY.
 3) The output (as in the case of mkpasswd) is to stdout. Redirect
    if you want to save the output.

Compile:
 gcc -o chsh chsh.c


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

Attachment: chsh.c
Description: chsh.c

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]