- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: remsh syntax and use?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 12:01 PM
09-30-2002 12:01 PM
remsh syntax and use?
I have two servers. A and B (both hp9000s)
A has 1000 user on it wheras B has a few - 5.
I want users from server A to be able to print files from server B with remsh.
The files on B are in a general directory nothing too important here.
1) To make this happen - do all 1000 users have to be on server B .rhost file?
2) Any other ways of doing this - logging into one machine and printing files from another server?
Any comments or suggestions welcomed!
Thank you for your time!
V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 12:12 PM
09-30-2002 12:12 PM
Re: remsh syntax and use?
Export the "general directory" on server B and nfs-mount it on server A.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 12:14 PM
09-30-2002 12:14 PM
Re: remsh syntax and use?
YOu can also use /etc/hosts.equiv file which defines host equivalency on another host . Do a man on hosts.equiv to get more information .
Remeber both .rhosts and hosts.equiv are security concern so use them very very carefully .
Alternately , you can configure printers on server B as remote printers on server A and users on server A can print to them without doing a remsh on server B .
If the printers are network printers you can configure them on server A and users can print locally .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 12:22 PM
09-30-2002 12:22 PM
Re: remsh syntax and use?
Example : /opt/test on server B to be mounted as /opt/data on server A.
On server B
===========
# vi /etc/exports
/opt/test -anon=65534,ro,access=serverA
# exportfs -a
On server A
===========
# mkdir /opt/data
# vi /etc/fstab
serverB:/opt/test /opt/data nfs ro,suid 0 0
# mount -a
To answer your qs..
1) If you want all the 1000 users to be able to do that then the answer is yes. You can also use /etc/hosts.equiv for your purpose. Be very sure of its security implication. Do "man hosts.equiv" for details.
2) The NFS way that I mentioned above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 12:36 PM
09-30-2002 12:36 PM
Re: remsh syntax and use?
On Server B define one user (test1) for printing purpose and in this users home directory create .rhosts file with following entry
server A +
The "+" entry will allow all users from Server A to use remsh without any password.
So on Server A use
#remsh
Thanks.
Prashant Deshpande.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 12:47 PM
09-30-2002 12:47 PM
Re: remsh syntax and use?
I think the NFS method is probably safest, especially if you mount it read-only.
I was thinking about the "serverA +" syntax for .rhosts but I didn't want to recommend it. It lets anyone (including hackers) login from serverA to serverB without a password. If you decide to use it, be sure to tightly lock down the serverB account.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 05:44 PM
09-30-2002 05:44 PM
Re: remsh syntax and use?
rlp
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 12:22 AM
10-01-2002 12:22 AM
Re: remsh syntax and use?
1. If all you want is to access the files in Server B for printing, do an NFS mount of the particular directory to Server A
2. Alternate option is to create a dummy user on server B and and everyone from Server A logs into Server B and print the files.
3. If the printer is on server B and you want them to print from Server A, user Remote printing.
If all of them doesnt work, then you may be create a dummy user on Server B and then add an .rhosts entry with "ServerA +" for allowing remsh for all users in ServerA to ServerB. But beware of the consequences.
HTH
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 07:36 AM
10-01-2002 07:36 AM
Re: remsh syntax and use?
Thank you for all those responded.
Is there no 'anonymous' remsh?
Or way around the
host.equiv/.rhosts?
The problem is we have 1000 users on server A - who will each be printing from potentially 1000 different printers - which all reside on A. The files needed are on B. I was hoping to find something that would let me just print the files needed on B. I could move them over - but the files on B are regenerated often - and I always want the most recent one. I would have to cron something to copy many files every 5 minutes or less to A.
Trying to find a less messy way.
Hoping someone out there has this experience. And there is no substitute for experience!
Any other suggestions or comments?
Thanks again!
V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 08:55 AM
10-01-2002 08:55 AM
Re: remsh syntax and use?
As someone else mentioned though, why not setup B as the print server and A as the client? This will print what you need from B instead of A.
or
NFS mount the directory your files are in that need to be printed on B then print them from B?
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 09:03 AM
10-01-2002 09:03 AM
Re: remsh syntax and use?
Thanks for the info.
Server A has all the printers locally on it - and there are about 200 printer or more. B does not any of those printers on them. The printers are setup via jetdirect cards. I do not want to setup the 200+ queues on B.
I am beginning to accept the move of the files to A.
Legacy systems - some work very well. But when it comes to changing them...ouch.
V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 09:36 AM
10-01-2002 09:36 AM
Re: remsh syntax and use?
I think what you should do is export this general directory on server B and then NFS mount it on server A.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 09:47 AM
10-01-2002 09:47 AM
Re: remsh syntax and use?
While Im used to ypinit -m, I think SAM will do the complete setup for you including building the maps from files. No reboot will be necessary for NIS to be up and running.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 10:24 AM
10-01-2002 10:24 AM
Re: remsh syntax and use?
If users and printers both are on Server A and want to print files on Server B, why not NFS mount the directory containing the files to be printed.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2002 12:53 PM
10-02-2002 12:53 PM
Re: remsh syntax and use?
For my 2 cents, I would use remote printing. Server A just sends the print job to Server B. Server B just prints it out. But you don't like this idea because you have to create 200 printers? Well how about 2 printers, and one shell script?
1. get a list of all the printers.
Like "lpstat -t > printerlist".
2. get the commands to make a remote printer printer out of one of those printers.
It's been a while, so I would create a remote printer using sam, then look at sam's log file to see how I did it.
3. make a program to repeat this process for a 2nd printer. Run it, test it, verify it.
4. tweek the program to repeat this process for the other 200+ printers.
5. Run the one program. Now you have your 200+ printers.
All of these printers would be in the form.
printer xyz on server A is a remote printer to server B. The printer on server B is also called xyz.
steve