LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux OS (https://www.linuxquestions.org/questions/linux-newbie-8/linux-os-701086/)

24653 01-30-2009 02:17 PM

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

farslayer 01-30-2009 02:52 PM

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/

r3sistance 01-30-2009 02:58 PM

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.

24653 02-02-2009 08:18 AM

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..

r3sistance 02-02-2009 08:38 AM

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.

ceantuco 02-02-2009 08:58 AM

Hi guys,

I had to accomplish a similar task this morning and it worked for me using SSH.
Thanks! ! !

k4nz4k1g4w4 04-01-2009 03:53 AM

Thanks for the useful information, farslayer!


All times are GMT -5. The time now is 12:25 PM.