Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I am setting up a Centos server and after going through the basic hardening process I realised there is no 'sudo' package on the box. The system is completely locked down so I can't access the internet and since it is in a remote location I cannot get the package off the media. The only option I have is to somehow lift the sudo files off an existing server and move across.
Is this possible? where are the files located that I need to move and does anyone have instructions that I could follow?
The only option I have is to somehow lift the sudo files off an existing server and move across.
Not advisable...the installed package - as with any other package by the way - has a conf file that is tuned in to the local platform, very rarely is a copy-n-paste of a package possible, and even then, a tweak of the conf file imposes itself.
If you dont have any access from the outside (root wise that is) the only option is to gain physical access to the box and installing sudo there.
As a humble word of advice: test this kind of installs on a physically accessible box (the LAN for example) before rolling out...
By the way, to locate anything (well, most of the stuff anyway) use "which" - like so:
Quote:
which sudo
that should give you the location of the executable, not the sattelite files as such (conf file, drivers, shared libs, stuff)...
Seriously, get someone local to the machine to get it off the media, its going to be soooo much easier
This is impossible I am afraid. The only close-to-physical-access I can get to the box is via ILO. Server is in a different geographical location
@Thor - Did the exact same setup on other servers and I am clueless why this particular sever had packages missed out, probably an oversight.
(I am reluctant to use this option but ...) I could use an RPM couldn't I? I know I will probably need dozens of dependencies
Another option would be to get the media into a virtual drive and load is via ILO. The difficulty is how do I get yum to look at the media and list the packages allowing me to add the one I need.
I could use an RPM couldn't I? I know I will probably need dozens of dependencies
As far as installing goes on RedHat's (and derived systems) - this is the best way to do it. Packages need dependencies, the very word stated the need therefore so if you could use an RPM, that's the way to do this...
Quote:
Did the exact same setup on other servers and I am clueless why this particular sever had packages missed out, probably an oversight.
Hi, I am setting up a Centos server and after going through the basic hardening process I realised there is no 'sudo' package on the box. The system is completely locked down....
These statements don't necessarily imply that you have either hardened or setup this host.
As far as installing goes on RedHat's (and derived systems) - this is the best way to do it. Packages need dependencies, the very word stated the need therefore so if you could use an RPM, that's the way to do this...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.