LinuxQuestions.org
Review your favorite Linux distribution.
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 01-30-2009, 03:17 PM   #1
24653
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Rep: Reputation: 0
Post Linux OS


hello there,
i wanted to enquire if it is possible to overide a client PC from a server PC in a standalone LAN like say through a remote login procedure.
I am developing a software on a linux platform wherein disabling USB enabled mass storage devices is a part of the software. The disabling part is possible but it is only disabled on the PC i am working on. So, if my PC was to be connected in a stand alone LAN with all the PCs running on Linux, how do remote login into each of these PCs and override the respective administrators of these target machines.These target machines have to permit me to overide their administrator so that i can perform the commands of disabling USB periherals from my PC(server). Is such a process possible? If so, please help..
shashi
 
Old 01-30-2009, 03:52 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
ssh into a remote machine
su- to root
unload the usb_storage driver rmmod usb_storage


Not sure what you mean by override the administrator of the machine..


http://www.linuxquestions.org/questi...b-port-692836/
 
Old 01-30-2009, 03:58 PM   #3
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,194

Rep: Reputation: 123Reputation: 123
If you are giving them root access then anything you set-up they can undo, the only way is if they don't have full root access, or really any form of true root access. The users have to have restricted rights for this to work. It's possible to enable some root access via the sudoers but just block of anything that'd grant access to undo anything you need to be able to control over them.
 
Old 02-02-2009, 09:18 AM   #4
24653
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
hi again,
i'll try clarify as to what my requirement is in form of an illustration.
Let say there are 3 PCs in a standalone LAN, all of which work on LINUX OS. I as the server am working on PC 1 and PCs 2&3 are my clients. Now i want to disable the use of mass storage devices which are plugged through USB on my PC i.e PC 1. For this i execute commands on Linux OS installed on my PC and it is successful. My question now is, can i be able to execute same commands of disabling the USB port for storage devices on PCs 2&3 while sitting at PC 1.
For this will PCs 2&3 allow me to do so??
i hope this will clarify as to what my reqmt is..
 
Old 02-02-2009, 09:38 AM   #5
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,194

Rep: Reputation: 123Reputation: 123
SSH is your friend, simply SSH into the client machine and disable the USB via SSH. That's quite simple, assuming each PC has a static IP in the enviroment, it's even easier to perform as you don't have to try and figure out what IP you need to SSH to get into their PC. In a DHCP enviroment, you need some networking knowledge to be able to prod around for the IP they are using.

If you do use SSH, remember to enable SSHD on the client machines and configure the SSH ports on their firewalls if they are running them.

Last edited by r3sistance; 02-02-2009 at 09:39 AM.
 
Old 02-02-2009, 09:58 AM   #6
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali
Posts: 588

Rep: Reputation: 37
Hi guys,

I had to accomplish a similar task this morning and it worked for me using SSH.
Thanks! ! !
 
Old 04-01-2009, 04:53 AM   #7
k4nz4k1g4w4
LQ Newbie
 
Registered: Apr 2009
Location: Osaka,Japan
Distribution: CentOS
Posts: 2

Rep: Reputation: 0
Thanks for the useful information, farslayer!
 
  


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




All times are GMT -5. The time now is 05:22 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