openSUSE Forums > Programming/Scripting » Help in these problem please?

Go Back   openSUSE Forums > Programming/Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


Programming/Scripting Questions about programming, bash scripts, perl, php, cron jobs, ruby, python, etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-Oct-2009, 21:59
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 3
crayes5735 hasn't been rated much yet
Default Help in these problem please?

First of all... Sorry if i posted in the wrong section >_<

Hi, i'm kinda new so please advice and teach/guide me ok?
Thx in advance... ^^

I need guide on doing the below things, with just using command line ( yast & yast2 ) are disable.

*First - I need to create a new local user describe as below :

-Full name : Little John
-Login Id : john
-Temporary password : john123

*second - there is a marry.txt file, and i want to change the owner of the marry.txt to john. and then change the marry.txt file right to -rwxr-xr-w.

*third - i wan to backup /etc directory to the /mnt directory. and the backup file name is etc.tar.gz. please teach me on how to type in the correct full command line.

And after i backup it what command should i type so i can view the backup file?

And lasty, if i want to restore the file to the /tmp directory, what command line is to type then?

Please guide me with me all the step/procedure? ( Yast and Yast2 are disable )want to learn it by using just command line?

I'm new and trying to learn here so thanks in advance ^^
Reply With Quote
  #2 (permalink)  
Old 28-Oct-2009, 22:33
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 12,941
caf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputation
Send a message via MSN to caf4926
Default Re: Help in these problem please?

From the Grub boot menu:

Quote:
Pause the boot by moving the down arrow, then back up to the default boot. But now press backspace, it should delete any text where you can see: vga=0x...
Remove all text and now type just the number:
3
and hit enter

at the login type your user name and then password
now type:
su
then the root password and hit enter a couple of times
Now type: yast

You will find you can manage users here and more..........
__________________
Box: openSUSE 11.2 | (KDE4.3.3) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
  #3 (permalink)  
Old 28-Oct-2009, 22:47
Global Moderator
 
Join Date: Jul 2008
Location: Salt Lake City, Utah
Posts: 1,271
hendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enough
Default Re: Help in these problem please?

On Thu, 29 Oct 2009 03:06:01 +0000, crayes5735 wrote:

> I need guide on doing the below things, with just using command line (
> yast & yast2 ) are disable.


Why are these tools disabled on the system? It takes a fair bit to
disable them on an openSUSE system (you have to opt to not install a fair
number of packages) - the purpose of these tools is to make admin easier.

> *First - I need to create a new local user describe as below :
>
> -Full name : Little John
> -Login Id : john
> -Temporary password : john123


Have a look at the man page for useradd.

Type: man useradd

This is the documentation for the tool and should answer your questions.

> *second - there is a marry.txt file, and i want to change the owner of
> the marry.txt to john. and then change the marry.txt file right to
> -rwxr-xr-w.


man chown
man chmod

These two commands (chown and chmod) will be what you will use for these
tasks.

> *third - i wan to backup /etc directory to the /mnt directory. and the
> backup file name is etc.tar.gz. please teach me on how to type in the
> correct full command line.


man tar

This will show you the options for the tar command.

> And after i backup it what command should i type so i can view the
> backup file?
>
> And lasty, if i want to restore the file to the /tmp directory, what
> command line is to type then?


These two things are also in the man page for tar.

You'll learn more by doing the research using the resources I've directed
you to above than if someone just gives you the answers. :-)

Jim

--
Jim Henderson
openSUSE Forums Moderator
Reply With Quote
Reply

Bookmarks


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
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2