DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 3rd June 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Default "newuser"

I came across the script "newuser" at http://chip.cuccio.us/projects/hacks/, and was considering porting it to my environment.

Question - does anyone forsee a problem with setting this script setuid root, and making it executable only by members of the group "new" (which will be only one - user "new") and setting it as user "new"'s login shell?

What I'm trying to accomplish is for someone to be able to log in to my system as user "new" and basically create their own account. Once the script is finished they will then be logged out and can then log in with their new account.

As a side note - considering extending it to not allow the user to select a password during this step, but instead use apg to geterate a random password, and require the user to enter a valid email address (which this random password would be sent to). Upon new user creation the password would be expired so as soon as they log in with this random password they will be required to set their own.

Thoughts?
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
 

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opera Port - conflicting pkgs in "make install" IronForge OpenBSD Packages and Ports 5 29th October 2009 05:10 AM
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" jb_daefo Guides 0 5th October 2009 09:31 PM
"Thanks" and "Edit Tags". diw Feedback and Suggestions 2 29th March 2009 12:06 AM
Newbie-friendly "printing in OpenBSD" guide wanted Shagbag OpenBSD Packages and Ports 5 7th July 2008 09:26 PM


All times are GMT. The time now is 11:10 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick