LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 02-18-2010, 02:28 AM   #1
ricnoah
Member
 
Registered: May 2005
Location: philippines
Posts: 102

Rep: Reputation: 15
shell script


is it possible to create a shell script that adds a user and password in the passwd and smbpasswd?

can you help me?

thank you.
 
Old 02-18-2010, 09:12 AM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Of course, but you might be a little clearer as to what you want to do before anyone can help you too much.

To start with, have you looked at the available scripts to add users to the password databases? Did they not meet your requirements?
 
Old 02-18-2010, 10:06 AM   #3
jvaldivia
Member
 
Registered: Sep 2007
Distribution: Debian Lenny
Posts: 61
Blog Entries: 2

Rep: Reputation: 19
I wrote a basic how to start on bash scripts, you may get some idea on how to start, it has redirect output to files and the use of variables

Stop by http://soad1982.blogspot.com/2009/07...h-scripts.htmlhttp://soad1982.blogspot.com/2009/07...h-scripts.html

Let me know if helps.
 
Old 02-19-2010, 09:11 PM   #4
ricnoah
Member
 
Registered: May 2005
Location: philippines
Posts: 102

Original Poster
Rep: Reputation: 15
shell script

ok it is like this, my client computers are booting over the network i am using k12linux and im using rdesktop to connect from a windows server. so i must create a user using useradd then passwd to create password and also i combine samba for logons from windows using smbpasswd -a <user>. so i want to simplify these things using shell script.

thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
pass variable from one shell script into another shell script xskycamefalling Programming 9 10-03-2009 01:45 AM
help with execute mulitple shell script within shell script ufmale Programming 6 09-13-2008 12:21 AM
I made a shortcut to a shell script and it is using default shell icon... shlinux Linux - Software 2 04-20-2006 06:29 AM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM


All times are GMT -5. The time now is 03:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration