Register
It is currently Thu Oct 30, 2014 10:35 am

Password Protector


All times are UTC - 6 hours


Post new topic Reply to topic  [ 9 posts ] 
Author Message
 PostPosted: Thu Feb 02, 2012 4:01 pm   

Joined: Fri Jan 27, 2012 8:08 pm
Posts: 8
Hi, I am making a password protector command and i need help with it here's the download
Attachment:
PasswordProtection.zip

Everything works except for the part where it checks if you are the admin while changing your password.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 PostPosted: Sun Feb 05, 2012 12:43 pm   

Joined: Fri Jan 27, 2012 8:08 pm
Posts: 8
.


Last edited by lagoon on Thu Feb 16, 2012 3:06 pm, edited 1 time in total.

Top
 Profile  
 PostPosted: Mon Feb 13, 2012 7:19 pm   

Joined: Fri Jan 27, 2012 8:08 pm
Posts: 8
Never mind i figured it out but does anyone have any ideas for actions to go with each user?


Top
 Profile  
 PostPosted: Thu Feb 16, 2012 12:00 pm   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 669
Location: Des Moines, Iowa
I like the use of openssl, interesting. Sorry, I'm not sure i get what your asking about "ideas for actions to go with each user?".


Top
 Profile WWW  
 PostPosted: Thu Feb 16, 2012 1:43 pm   

Joined: Fri Jan 27, 2012 8:08 pm
Posts: 8
crouse wrote:
I like the use of openssl, interesting. Sorry, I'm not sure i get what your asking about "ideas for actions to go with each user?".

Thanks! What i'm trying to say is that a user can have certain functions to use ince they are logged in and have the functions user specific. I know how to do that but i just don't have any good codes to use as functions.


Top
 Profile  
 PostPosted: Wed May 16, 2012 4:18 pm   

Joined: Fri Jan 27, 2012 8:08 pm
Posts: 8
BUMP


Top
 Profile  
 PostPosted: Sat May 19, 2012 7:02 am   
User avatar

Joined: Fri Jul 22, 2011 5:39 pm
Posts: 47
lagoon wrote:
...I know how to do that but i just don't have any good codes to use as functions.

This may help.
Code:
# Function
check_security()
{
if [ "$(id -u)" = "0" ]; then
echo #Do something smart as root
else
echo #Do something safe as "$user"   
fi
}


Top
 Profile WWW  
 PostPosted: Thu Jun 28, 2012 3:01 pm   
User avatar

Joined: Wed Jun 08, 2011 8:27 am
Posts: 189
Location: outer Shpongolia
What you are searching for is a chroot jail, I think.


Top
 Profile  
 PostPosted: Mon Jul 02, 2012 2:49 am   

Joined: Mon Nov 30, 2009 4:06 am
Posts: 16
If that is what you want, better look at this too
http://www.bpfh.net/simes/computing/chroot-break.html


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP