I need to remove a user from RStudio-server. How can I do that? I have read the RStudio server administration guide thoroughly; however, did not get the answer for this question.
RStudio Server doesn't have its own user system; it uses the same list of users as the Linux system on which it is installed. It's likely that you just need to remove the user from the RStudio Server system, using e.g. the userdel command.
http://linux.die.net/man/8/userdel
If you want to allow the user to log in to the system, but don't want them to be able to log in to RStudio Server, then you can restrict access to a specific user group as follows:
http://docs.rstudio.com/ide/server-pro/authenticating-users.html#restricting-access-to-specific-users
Related
I have problem with node-red.
I have a server and i have node-red running on it, i know how to create user authentification by editing setting.js file but what i want to do is that i want to be able to create other users from a webpage that is running on the same server.
I can run a python script that edit the setting.js file and i can edit it mannualy,
but i want to be able to create and remove users from the webpage that is running on the same server.
i am using ubuntu and ngninx on my server.
The Node-RED security documentation includes a section on adding custom user authentication here. It explains how you can replace the hard coded user information with a module that will authenticate a given user. Editing the settings.js is probably not the right approach, especially as it will require you to restart Node-RED after each change.
With this approach you can build your own back end to store and manage users. There are a couple of examples of such code available, including this one that I have written that uses MongoDB to hold the user information. The management app that creates users can be found here, but you can write your own in Python if you want.
Just as a reminder, Node-RED is not a true multi-user environment, even if you declare a number of users, they will all only have shared access to one instance and set of flows. If you want a truly multi-tenant (each user has their own instance and flows) deployment you should probably look at the entire series of posts in that collection that explains how to build such a system. You can start here.
I'm trying to use the boxr package to link my box account to R-Server.
I get as far in the box_auth() instructions as step 3 from the box pdf https://cran.r-project.org/web/packages/boxr/boxr.pdf
A window pops up and I authorise connection then I get the error 'Safari can't connect to the server'.
I have no knowledge of how apache or web development works so forgive my naivety, I've come to understand the problem is I don't have localhost set up on my Mac.
I'm unable to turn these features on because it requires admin rights and my company won't allow users to have this.
Is there something else I can put in the redirect_uri box apart from localhost that will allow this to authenticate?
Thanks
The issue i had was mostly that authenticating box through R-Server isn't supported. https://github.com/brendan-r/boxr/issues/23
To get around this I used my personal laptop to authenticate locally then uploaded the .Renviron and .boxr-oauth files to R server (which is the advice in the github post)
This was slightly tricky as R wasn't showing the .boxr-oauth file but I managed to copy it to a folder, zip the folder, then upload that to R-Server.
Now running the box_auth() function authenticates as it should.
As of v0.3.5 (November 2019) boxr has a new alternative authentication method designed for remote servers, box_auth_service(), that closes issue 23. It's slightly is different than the oAuth way, because it uses "Service" accounts as the actors instead of the "User" account. But the "Service" accounts are what's needed to maintain security within a organization, so we opted for that. Please open an issue on the repo if you run into any issues.
Please suggest a clean(er) way of adding a user (like myself) to Shiny Server running on Ubuntu. I found this link: Setting up shiny User permissions but would like more advice on this. And I don't want to host RStudio server, just want to host Shiny server. Also can I run Tomcat along with Shiny server on the same machine?
I think you may be misunderstanding what that link is saying. You're not setting up different users for the Shiny server, you're setting up users on your computer, and managing them in such a way that you keep track of permissions for files you create on the computer. The important thing is to make sure the "shiny" user on your computer (which will be the one hosting your shiny server apps, unless you modify the default settings) has the correct permissions to access the files it will need when running those apps.
When you run a Shiny app, you won't be logged in as a user per se, rather the "shiny" user will host the computation for you, and deliver any output to you through your browser interface.
To my knowledge, unless you're using Shiny Server Pro, you won't have the ability to specify different users when using the apps (this is different to a "session", which is another topic).
When you create a shiny app, and install it (by moving it to the "/srv/shiny-server" folder), you'll need to make sure the user "shiny" on your computer has read access to that file at the very least. If your app involves reading data files from your computer, make sure the "shiny" user has read access to those too. If your app involves writing to files on our computer, make sure the "shiny" user also has write permission for those files.
I am writing a webpage that can be used to download an executable that can run on your machine and can access System Registry on user approval. The site has live id authentication before the user can download the executable to run. This executable reads system registry for a list of installed metro apps. The executable then uploads data from the scan to a database in the cloud. Is there a way for the executable to somehow get access to the live id that the user logged into the webpage with? I would like to upload the live-id + results of the scan to the database. The database will be keyed off the user's live id. We would need to assume that the user may not be logged on his local machine with the live id account.
Any help will be greatly appreciated, as would any other means to achieve this result.
I’m not really sure you can easily associate this using only .exe file. You can experiment with following options
Change your app so that it can read live ID from an xml config file and then instead having users to download only exe you get them to download exe + config in a zip file for example.
Second option is to have the user to manually enter live ID before running the app.
Another option would be to match MAC address used to access the application with MAC address used to send the results. When user logs in you store it’s MAC address somewhere and then match that with MAC address used for sending data. Not an ideal solution really but you can work on something similar in this direction.
I have installed OpenLDAP server.
How to add user (entry) in LDAP server. And how to open command window for that server, so that I can run the ldap command on it:
:
My requirement is : in my app i want to authenticate users which are added in Openldap server
but i am only able to install OpenLDAP server on windows os,, but how to add the user i unable to get the way. what is the way to add user in openLDAP whic is install on windows 7 OS? this is what i want to ask
You can add entries to the LDAP database in several ways. While slapd is running you can use ldapadd/ldapmodify to add entries. You can also use slapadd with an ldif file as well.
Read up on the usage of these tools and then come back with any question you may have afterwards.
You also need to understand how to construct a directory information tree in order to give some structure to the data you are storing in the LDAP database.
You can do it easily by using LDAPAdmin