Questions tagged [switch-user]

44 questions
1
vote
1 answer

Keep Python3 script running when changing user on Linux

I'm trying to build a baseline tools installer for Kali Linux, basically, a script that installs all the tools I usually have to install manually, but also creates a new user and switches to it. My script so far looks like this: # -------------- #…
Stefan Rows
  • 67
  • 10
1
vote
1 answer

Spring swichUserFilter redirects to target Url without switching

I have some data that i need to replicated for userA. As i dont know userA's password, i want to login as adminUser & switch to userA & post the data. Related to this i have two questions :- Question 1) I am first trying to login & switch using the…
N29
  • 141
  • 1
  • 17
1
vote
1 answer

How to run a function from script as another user

In a bash script, I am trying to run a function which pass as parameter a command line. And so I am trying to pass a find command as another user. Instead of running straight the find command, I have a function run-command which basically run and…
jardindeden
  • 125
  • 1
  • 12
1
vote
2 answers

Switching user in laravel 5.4

I am switching users in laravel and I succeeded in that as well but the thing is when I redirect the user to the dashboard after successful login it redirects to login form instead I don't know what am I doing wrong. Here is the code I am…
Mohsin Abbas
  • 630
  • 8
  • 29
1
vote
0 answers

c# AppBar switching users

I'm writing an App Bar using win32 calls like SHAppBarMessage. Currently I handle this behavior by doing this: SystemEvents.SessionSwitch += this.sessionSwitchEventHandler; Where the event handler has some code: private void…
xandermonkey
  • 4,054
  • 2
  • 31
  • 53
1
vote
1 answer

How can I replicate Task Manager's switch user functionality in C#?

I have a basic application that runs in the tray, and I'd like to incorporate the Task Manager's switch user functionality into it. This will be used to switch between a local "regular" user and a domain admin, both of which are mine. Basically,…
tgmatt
  • 115
  • 1
  • 5
1
vote
1 answer

Unable to impersonate user when authenticated using auth_kerb listener

I am trying to set up switch_user functionality on an application which authenticates using Apache's auth_kerb. REMOTE_USER is returned correctly and am able to log in. However when I try to masquerade as a different user I am unable to. The user I…
boombana
  • 11
  • 3
1
vote
0 answers

Devise + Switch User : How to avoid trackable update for a switch user?

I am using switch_user rails gem to login as any other devise user from an admin account. When I use switch_user for an account, the devise session updates all the devise trackable attributes for that user such as: t.integer "sign_in_count", …
1
vote
2 answers

Grails Spring Security Switch User setup problems

I'm trying to configure the SwitchUser feature of the Spring Security plugin and not having success. For the most part, it seems simple and strati-forward but after getting all the code in place and clicking 'switch' button, it just redirects me to…
CheddarMonkey
  • 449
  • 5
  • 12
0
votes
2 answers

Detect enter/exit session under KDE/Gnome with FreePascal

I'm asking this question after I got a very good answer to: How do I detect the 2 states of “Switch User” in Windows My intention is to find out if the Switch User under KDE/Gnome has a similar API call I can monitor with FreePascal. If not with…
Gustavo Carreno
  • 9,499
  • 13
  • 45
  • 76
0
votes
0 answers

Switch User Access Forbidden

I am trying to use the Switch User feature of grails using the documentation application.groovy changes: grails.plugin.springsecurity.controllerAnnotations.staticRules = [ [pattern: '/j_spring_security_switch_user', access: ['ROLE_TENANT_ADMIN']], …
Mohit Chandani
  • 101
  • 1
  • 12
0
votes
1 answer

How can we determine a program is already running in either in the current user or other user in delphi

I am trying to determine whether a certain process is running under the current user or under another user on the same pc. I've applied the following code and it works well as it program can determine the process from the task manager if that the…
Leong
  • 229
  • 2
  • 11
0
votes
0 answers

Role management with switch_user in Symfony 3.4

Here's my situation: I'm working on a Symfony 3.4 project. I've enabled the switch_user setting in security.yml and I'm able to log in instead of the users. However, I have a question about the rights. I have three user groups/roles: BASIC_USER:…
0
votes
1 answer

auto switching user with task scheduler in win7

I have windows7. My computer has 2 accounts: Admin (with password) and Guest(w/o password). My purpose is to login on Guest account when wakes up from hibernate using task scheduler. When the computer wakes up from hibernate the status of accounts…
Artur
  • 21
  • 1
  • 6
0
votes
1 answer

Keep track of current active windows user after switch user event in c#

I'm trying to monitor the activity of the current user on a computer. I have a process which monitors what it needs to monitor and saved on a file which user did the activity. Currently, I'm saving on a file the name of the user who owns the process…
Yuval Perelman
  • 4,499
  • 1
  • 22
  • 32