How do I log in to a system reserved through Beaker? - beaker-testing

I found the Reserve Workflow in Beaker, and used it to schedule a job. Beaker reserved a system for me and sent me an e-mail with the FQDN.
Now how do I log in?
(Based on a "question" asked by a frustrated Beaker user on 2014-03-01 in Bugzilla.)

The simplest way is to use SSH key authentication. You can add your SSH public key on the Preferences page (select Hello -> Preferences from the menu), then Beaker will add it to /root/.ssh/authorized_keys in all of your jobs. (You needed to do this before you submitted your reservation job. Beaker doesn't magically update your public SSH key on recipes that are already running.)
Otherwise you can log in as root using a password. Beaker will use the root password you set on the Preferences page (if you set one), otherwise there is a default Beaker-wide root password. You can find that on the Preferences page as well.

Related

Can't find my VM instance (Debian) in Google Compute Root user and Super user Password

In my VM instance I have username the same as my email address (without #gmail.com). It is created automatically, and I do not know the password for it. Also, another user which is a root user,and I do not know the root password.
I need it because when I try to run
fab secure
it will ask me for the password whether I'm running it using a root user or another superuser.
Please help.
By default, there are no passwords; everything is done using certificates. If you use SSH in the browser (by clicking the SSH button in Cloud Console), everything is handled for you. Simply sudo whatever (sudo fab secure, for your example) and you're done.
If you'd like to SSH using an SSH client, here's what you'll need to know.
By default, everyone who can log in to an instance can use sudo; if that's not what you want, you can use the new OS Login feature, which allows you to allow users shell access to the instance without being able to use sudo).
By default, the root user is disabled and can't be used, and you don't need to use it; if you require a root shell (instead of executing individual commands as root) then sudo su - is what you're looking for.

Redmine email notifications

I am starting to work with redmine and I need to configure the email notifications for users
I want users to receive emails when there is an issue assigned to a group they are part of,but I also want some specific users (like managers) to receive all emails from all issues.
And the actual configuration of redmine does not allow me to do that because is the same configuration for all users.
Any ideas?
That kind of configuration is user specific. The admin can set up the default level of notification in Administration -> Settings -> Notifications, but every user can set up a custom level in "My account".
You could, however, bulk-modify the notification setting for specific users using a database script. The notification setting appears to be in the "mail_notification" field of the "users table".
For instance, in my Redmine instance I've got the several values:
select distinct(mail_notification) from users;
only_my_events
only_assigned
selected
none
After I set up my own configuration to "For all events on all my projects", as you want, a new value 'all' appears.
Therefore, you might try a script like:
update users
set mail_notification='all'
where id in ('user1_id','user2_id',......'usern_id');
It's dirty, and I would try it first in a test environment (and backup your production database before doing it in production), but it will probably work.
Bear in mind that, even if you set up the notification configuration for a user this way, (s)he can log in later and set it up to another value. There is no way to block users from changing that parameter as far as I know.

Add user to Sharepoint database

I created a web part for Sharepoint 2013 which reads the email address from the user that is currently logged in. I'm deploying locally and the only user I have is the administrator which has also no email address yet.
Where can I add an email address for the administrator?
Where can I create a new user account?
Sorry for these basic questions but I'm pretty new to SP and I couldn't find any solution on the web yet.
Thanks for your help!
This depends on your SharePoint instance (if it is on o365 or on-prem).
In case of o365 it is being managed by Azure AD (you can use the o365 admin center to change the email property) and if this is on-prem instance you have to change user property inside your Windows Server Active Directory.
After you do that make sure you run the full sync on the user profile job.
Needs to be done in the Active Directory. Search for "Active Directory Users and Computers" on your machine.

Running ColdFusion as a specific user

On this page, it talks about Windows NT, 2000, XP and 2003. Fortunately, I have a Windows 7 machine.
The very first line says:
In User Manager for Domains, create a local user for the ColdFusion
service to log in as.
I don't see a "User Manager for Domains", so do they mean just "Add a new user"?
If it DOES mean that, can I use my own user account as the ColdFusion user, or should I specifically create a new account just for ColdFusion?
If you are creating a domain account it has to be created ON the domain - using user manager for domains connected to your domain controllers. If that's what you need then a sys admin has to help.
If you are doing a "local" user on a windows 7 I always end up hunting around for the right view of user manager before I get it right :) Here are the steps that I use:
Search from start and open the "user accounts" cpl.
Click on "Manage User Accounts"
Click on the "advanced" tab
Click on the "advanced" buttton.
This takes me to the mmc-like view of users that I'm accustomed to where I can add a user, change membership, set passwords etc.
Hope this helps :)
You can use your own username or you can create one for CF to run as. Creating a user to run CF as probably more closely replicates your production environment ( an assumption ) so if production for example writes to a UNC path the coldfusion user must have acces. You could
Mimic this locally.
You can use either an account local to the OS where ColdFusion is running, or a domain account if the OS is joined to a domain. In your case, you can just create a local user on your Windows 7 OS and run the ColdFusion Application Service as that user. The user account will need access to ColdFusion's installation folder, as well as read access to the webroot.
The whole idea is to run the ColdFusion service as a user with the minimum privileges necessary to handle requests and prevent access to other resources in the event of a data breach or remote code execution (e.g. someone exploits an upload form and manages to get their own CF code to run on your server; it's not pretty but can be somewhat restricted by running the CF service under a user account with restricted access).
As someone else mentioned, if CF needs access to other network resources, the user account will need to be granted access to those resources as well (either by using a domain account or having a local account with the same username and password on the remote system).
Just did this on Windows 2008 R2 with CF 10. The trick was to change the ownership of the c:\windows and c:\windows\system32 directories as outlined here.
change ownership from trustedInstaller

CFLDAP:- populate FULL data from Active directory, rather than a single userid or username

I have a form field “Names” that gets populated from an Active Directory.
I am using CFLDP to connect to the Active Directory.
<cfldap action="QUERY"
name="results"
attributes="cn,sn,dn,department,mail,userid,etc."
start="dc=##,dc=##,dc=##"
filter="##=##"
server="00.00.0004"
username="me"
password="mePASWD">
<cfdump var="#results#">
When I see the result it throws the data(CN, DEPARTMENT ,DN ,MAIL, SN, USERID , UUSERID
) only for the Username="me" AND Password="mePASWD". WHERE AS I WAS HOPING IT WILL LIST THE DETAILS OF ALL THE USERS IN THE ACTIVE DIRECTORY.
ULtimatelyt I want to list theses “names” as a list and enable The user to select any “Name/Names”.
Please help how to populate all the data from Active directory rather than only a single userid or username.
I am using CF8 and Windows Server 2003 AD/LDAP standard.
Thanks
It appears that your user account only has access to your own record.
You will need to use a username and password for an account with wider access to the directory.
Alternatively, you may be able to use an anonymous bind depending on what your system administrator has enabled.
I find it useful to use a standalone LDAP browser to troubleshoot ldap issues.