LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-24-2002, 04:15 AM   #1
kamotekid
LQ Newbie
 
Registered: Jun 2002
Location: singapore
Distribution: redhat
Posts: 3

Rep: Reputation: 0
linux commands


sir/ma'am,

i have a problem about the cut and paste commands in linux..i have two machines both with redhat linux 7.2
they have dfferent users inside. the question is how do i cut and paste a portion of the passwd file in one of the linux box
and paste it to the passwd file of the other linux box without using a gui based editor, i mean i will do it in text mode.
you could email me at allen@svtech.com.sg
any help please??

thanks,

allen
 
Old 07-07-2002, 06:04 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
How do you communicate between the 2 boxes? One way would be to cut the text, paste it into a new file, transfer it over, and then paste the new file into the other box.
 
Old 07-07-2002, 06:27 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
please don't ask for a private email, it's not really polite.

what are you trying to achieve? if you just want to clone users, then you won't achieve it with that, as you'll need the password shadow entries as well.

assuming you are using a network tho it all depends what facilities you have installed. ftp? ssh? nfs? smb? http?
 
Old 07-07-2002, 12:11 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Wouldn't it be just as fast as to create the users instead of going thru the trouble of cut & paste, transfer and copy.. etc ??
 
  


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
linux commands zexter Linux - Newbie 5 11-04-2004 03:37 PM
linux commands help kyborg Linux - Newbie 4 09-28-2004 02:31 AM
Linux commands Delmarc Linux - Newbie 9 10-22-2003 11:39 PM
Linux commands Shikha Linux - General 3 11-27-2002 10:40 AM
Linux Commands AMDPwred Linux - General 23 01-11-2002 01:23 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration