Ok, im doing a self teaching course, im trying to understand how unix works, get and understand the basics before i hit the advance level.
Now i have this in windows,
@echo off
echo.
echo SELECT OPTION
echo -------------
echo.
:menu
echo 1- Create username
echo 2- Create password
echo 3- Delete username
echo 4- Exit
echo.
pause
set /p option=enter option 1 2 3 or 4:
if %option%==1 goto createuser
if %option%==2 goto createpass
if %option%==3 goto deluser
if %option%==4 goto exit
:createuser
echo Enter username
set /p var=Username:
net user %var% /add
echo Username successfully entered
goto :end
:createpass
echo Enter password
net user %var% *
echo Password successfully entered
goto :end
:deluser
echo Enter user to be deleted
set first=%inputvar%
echo User deleted
goto :end
:exit
Whats the code for unix, is it similiar? Or completely different any help would be appreciated
If someone can do a code for create username on unix using bash it would be awesome, once i have an idea i can then try password n delete by myself before i ask for any more help.
I don't understand the point of putting a wrapper script around 'useradd username' and 'userdel username' and 'passwd username'. They're fairly straightforward without one.
Hi newbie, for your information, you can suscribe for a free shell account here then download for free PuTTY to connect
@All modo
I provided this link in the only purpose of giving a chance to a new unix user to quickly have the possibility to practice and NOT for advertisment prupose : if you consider it is, please send me a PM and i will immediately remove this post.
I just believe newbie987 doesn't need such and he has *nix on his machine.
If it's not the case, i would recommend to install some Linux distro so that playing offline with the shell will be possible...
@frans
Thas was to get him a quick access and give him a chance to get familiar with shell/command line and console stuff without havin to waste time and/or space with another installation, he can still go for an installation when he is comfortable with shell stuff.
(Btw, installation can be scary for people beginning "from scratch" on unix world.)