42 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
2
answers
346
views
Symfony 6.4 - Impersonating User - Cannot access routes with parameters
context: I'm developing a Symfony 6.4 application where a parent can have several children and interact with the application under their names. So I have a parent (User entity) linked to one or more ...
-1
votes
1
answer
3k
views
one-liner to become another user and run a command as that user
In my local machine, I would like to become another user (let's say currently I am user_c) and then to run a command as that user, specifically I would like to become user_o and run whoami.
I usually ...
3
votes
0
answers
809
views
grep: /proc/version : Permission Denied
I wanted to run vscode as non root user so I switched to another user by "su - username"
and run "code" but it gave an error "grep : /proc/version : permission denied"
...
0
votes
1
answer
550
views
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 ...
0
votes
0
answers
281
views
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 ...
2
votes
0
answers
524
views
Run CGSession -switchToUserID on remote Mac
I have next script on my remote Mac:
on run
do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -switchToUserID 502"
delay 5
tell ...
1
vote
1
answer
101
views
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 ...
1
vote
1
answer
1k
views
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 :-
...
1
vote
1
answer
1k
views
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 ...
9
votes
2
answers
19k
views
Dockerfile entrypoint unable to switch user
I am unable to switch user to a non-root user from the entry point script. The User directive to change the user in Dockerfile works, but I am not able to change permissions using chmod. To overcome ...
-1
votes
2
answers
298
views
Windows 7 - Black screen at logoff / switch user
Since July 5, some of our Windows 7 Enterprise machines started showing black screen and becoming unresponsive at user log off / switching users. No changes have been made in our environment; nothing ...
1
vote
2
answers
567
views
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 ...
0
votes
1
answer
579
views
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 ...
0
votes
1
answer
1k
views
InSpec + TestKitchen: How to execute command on behalf of specific user?
My Chef cookbook installs Ruby locally for specific user. I want to write an InSpec test that checks if specific version of Ruby is available and if gems are installed without documentation.
So ...
1
vote
0
answers
103
views
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 ...