how to run a program under different user's accounts - user-controls

my program (C:\Program Files\MyApp\Myprog) starts with windows startup; at device insertion Myprog.exe invokes another program (C:\Windows\comp.exe). this process works fine in the admin account in which I install the program but Myprog.exe is unable to invoke comp.exe when users account is changed. I want (C:\Windows\comp.exe) to be invoke in each type of account e.g admin group accounts and non-admin accounts. please help

you have to add more information. Is it possible that the invoked program has to be run as administrator because of what it has to accomplish needs elevated permissions?

Related

How do I allow only specific programs to access a certain folder?

Example: Only MyExe.exe and the Administrator is allowed to access folder "c:\MyExeFiles", no other program.
I don't think that this is possible.
But you can run the app under another user account. See the RunAs command.
Folder rights can be limited per user or user groups, so as far as I know the only was is to assign another user exclusive rights to the folder along with Administrators and deny others and use the RunAs command to run the program as that user

Amazon EMR Linux Instance User Account Access issues

I created a user account on Amazon Linux Instance with root user. I found that if I create a user account(Example: ec2-user) that account will not have execute and write permissions on Hadoop Files System, Hive, Pig and other tools which are installed on Amazon EMR. If I have to give them explicit permissions I have to create a group which has permissions equivalent to superuser(root) account and add users to that group. Is there any other way I can set up access for those accounts to HDFS, Hive and Pigs etc.
Also while logging in as user the Linux command prompt is not prompting to enter any password even though I gave password for the user account while creating it. Is there anything configuration changes I need to make in /etc/ssh/sshd_config file?
Your question is not that clear to me.
But, let me attempt with whatever I suppose I understood.
Hadoop when security is enabled needs to have security for each user. It seems your user needs a separate space for writes and executions i.e. a Home directory.
First login as 'hdfs' user in a terminal and then create a home directory for your user in HDFS. Please check if you have a directory called /user/{yourUser}. If, not create that. Then, make sure you make {yourUser} the owner of /user/{yourUser}.

Simulating Linux-like admin privilege enabling in Windows 10

In Linux, when we execute a script/application/command line which needs sudo, it ask for the password even current logged account has sudo privileges.
In Windows, if admin user account is logged in, all it asks for executing the app is clicking a button. For implementing this kind of procedure in Windows 10, I created 2 different accounts that one is normal and other is with admin privileges. So far it satisfies the needs when we execute a privilege needed process on normal account, it asks for the password of admin account. But problem starts when switching between user files (Interraction between Normal user desktop and admin user application doesn't work).
Basically, I would like to create a sudo alike user in Windows 10. Any suggestions?
In Windows , you can run an application as admin , even though logged in as normal user
Do a right click on application -> compatiblity -> (change settings for all users)

Running cruise control.net under different credentials

So I have one part of my build that requires domain rights and does file copying.
Another part of my build runs some program that requires the user to interact with the desktop which seem to be only accomplish able by the system account.
What is the best way to work around these two items? At the moment it seems like I can only do one or the other...
One way is to do net use s: \\<share path> <password> /user:<domain user> /savecred, which will allow your system account to impersonate the domain user for the share connection.
Another way is to use the runas.exe /user:<your domain user> /savecred <program>. Note that this would require someone running runas to enter the domain user password form the context of your CC.Net user. You can do this by opening a console as the system account (there are numerous articles on this topic, because of CC.Net SVN integration) and manually running runas /savecred and providing the password.
An alternative is to create a separate COM service that runs as the domain account and have a command line tool that CC.Net invokes that call that service.
Yet another alternative would be to have the CC.Net schedule an immediate task running as the domain user. You can use schtasks.exe to do that. You'll need an xml file with the task definition, which will need to contain the domain user name and password.

Cannot debug when logged in as a user other than the administrator

I have acustom sharepoint page.
on my machine I can debug the code normaly by attaching to the w3p process when I'm logged in as the administrator user.
when I log in with another user and try to debug I always get access denied page in the sharepoint and the dubug exists.
is there a way to debug the code while logged in with another user
thanks
Currently, you are trying to attach to sharepoint's processes which run under some specific account, using a non-admin account. You simply don't have enough privileges to do that.
I'd suggest that you keep logged in as administrator and consider the two choices:
run Internet Explorer through runas command under the desired user account:
C:\Windows\System32\runas.exe /user:contoso\sampleuser /savecred "c:\program files\internet explorer\iexplore.exe"
open Internet Explorer as administrator and use the SharePoint's "sign in as different user" feature.

Resources