The below code snippet was used to add SSH users to RackSpace cloud CentOS Linux nodes being used as application servers and managed via RightScale. The SSH users were required during a testing phase so they could look through logs and make modifications to specific configuration files, etc. There are three things that have to happen to create the SSH user, allow them to login, and provide them the necessary rights on the server to accomplish their tasks which include adding the user, modifying the sshd config to allow password logins, and update the sudoers file to enable sudo access for wheel group users.bash, boot, CentOS, cloud, group, inputs, instance, Linux, node, passwordauthentication, rackspace, rightscale, rightscript, script, sed, servertemplate, SSH, sshd_config, sudoers, useradd, variables, wheel
Posts Tagged “group”
Jun 17 2012
The other day I needed to create a RightScript shell script that would update a couple configuration files on a server that was being launched in the RackSpace Cloud via RightScale. I decided to use SED to find and replace content within the configuration files. The first pass at the script failed because what I thought were spaces ended up being tabs. Use the information below to represent a tab within a shell script when using sed.bash, bash script, CentOS, group, Linux, rackspace, rightscale, rightscript, script, sed, shell script, space, sudoers, T, tab, wheel
Jun 22 2010
I had a customers computer in the store today which was a simple windows XP home edition desktop and they wanted to restore the PC to a earlier time. This is normally a simple task however when I went to system restore I recieved the error “System Restore Disabled by Group policy”. Since this was just a normal persons desktop I found this very odd. Next I tried to edit the policy values via the registry and was greeted by another error saying ” Registry Editing has been Disabled by Group policy”. This was starting to get a little annoying so I decided to document my steps to fix this issue. Now before I get a hundred comments with people saying there is a better way remember there is more than one way to do things and this is just my way.
Below I document the few simple steps to fix this error.CurrentVersion, DisableRegistryTools, fix, group, HKEY_LOCAL_MACHINE, Policy, regedit, registry, restore, System, value, windows, xp
May 20 2010
I recently had a client who kept complaining that their office server was randomly rebooting through out the night. I knew when I had done the install of server 2003 I had turned off auto updates so that I could control the update procces myself but the problem sounded like auto updates. Once I did a little investigation I noticed that auto updates was still on and when I tried to change it via the control panel all the options were grayed out and I had no control. I then remebered that active directory’s group policy determines pretty much every thing on a domain controller and since I had just reused the existing policy when I did the reinstall, the automatic updates were still on.
Jul 09 2009
I have had a server running ISPConfig 2.x for quite some time and have been wanting to make the transition to ISPConfig 3.x as soon as I had a chance. That chance presented itself earlier this weekend and I am glad to say there were no major issues thanks to the amazing how to from Falco at HowToForge. After the installation and bringing numerous sites back online I had some outside the normal installation steps to complete. These steps included things like installing/configuring SNMP, installing/configure Nagios, etc.
All appeared well when I went to sleep meaning the servers seemed to all check out when was finished and ready to catch some sleep. Anyways when I logged on the following day to check all of the sites all was still functional besides a small DNS configuration error I had made with one sub domain which was not a big deal.403, 403 forbidden, 8080, Admin, apache, chmod, error, forbidden, group, httpd.conf, ISPConfig, permissions