PDA

View Full Version : [Qeustion] about Shellscript ubuntu



Thibault89
June 24th, 2011, 10:11 AM
Well i have an qeustion, i need to know how you need add stuffs on script. what i need list

-give int passwd user, Shadow user, Group user
-All file's (tar.gz) /home/user

Can you please for me to help? i need it just for Shell Scripts ubuntu.

Thanks you..

Tony Flury
June 24th, 2011, 11:58 AM
Is this homework ?

Do you know how to do any of this stuff from the command line ?

Thibault89
June 24th, 2011, 06:32 PM
No really, i am helping my uncle. so he was qeustion to me. and he doenst know very as well english. Alright i hope you guys/girls help to us =)

FormatSeize
June 24th, 2011, 09:52 PM
-give int passwd user, Shadow user, Group user
These should be done at the command line, even if you are adding tons of people, since you have to come up with names and passwords for them all anyway.

-All file's (tar.gz) /home/user
I actually did this last night:


#!bin/bash
# -- your comments or whatever
FILES=/home/user/*tar.gz
for f in $FILES
do
tar -xvvzf $f
done

geirha
June 25th, 2011, 11:31 AM
For adding many users in batch, look into newusers(8).

man 8 newusers

Thibault89
June 25th, 2011, 01:31 PM
:D Awesome, That is really nice helper. but i dont understand kind about
-give int passwd user, Shadow user, Group user? Because my uncle told me he must need it from his friend. Maybe Any people explain me what does this mean?
but any people dont know how Bash Shellscript of Give Int passwd user,Shadow,Group User?


Sorry about late reply.

Thanks you if you want to help us.

geirha
June 25th, 2011, 01:53 PM
Your question is not understandable, not to me at least. You'll have to write it in valid english. Perhaps see if there's a Loco team for your language and ask your question there.

https://wiki.ubuntu.com/LoCoTeamList

Thibault89
June 25th, 2011, 09:44 PM
well i am sorry, but i want just last one Shellscript about give int passwd user, Shadow user, Group user =/ then i have all what i need.. and thanks you.. if you help me..

Thanks you

Thibault

geirha
June 25th, 2011, 10:02 PM
Well, problem is, "give int passwd user" doesn't make any sense, what do you mean? And what do you mean by "Shadow user" and "Group user"?

If you have some sample input and wanted output you could provide, that would probably help.

Thibault89
June 27th, 2011, 10:26 AM
sorry my uncle speak a wrong word. he mean

Data int passwd user (/etc/passwd)
Shadow user(/etc/shadow)
Group user(/etc/group)
but i am not sure. =/ Well It is okay if you dont understand then i am trying check on site.

Thanks you if you are trying help me:)


Thibault.

nothingspecial
June 27th, 2011, 12:57 PM
What does the script do with the data in the three files?