CentOS7.8 not raise privileges to root but a strange user [closed] - centos7

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 days ago.
Improve this question
touch a test.sh and write following in it:
source ~/.bash_profile
chmod a+x ./test.sh
./test.sh, it prompts me to enter password, after I enter correct password, still authenticate fail.
as I write 'before' and 'after' around . ~/.bashrc, it seems that . ~/.bashrc need to be authenticated.
But why is it authenticated as daemon instead of root ? daemon is a special user(I don't know what it is used for):
PS: OS is Centos7.8

Related

How can I run Win10 Camera application via command? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
This is the Win10 built-in Camera application.
We usually can run a normal Windows applicaion via command like
notepad
calc
in cmd or powerShell.
For the camera APP, I inspected the process via spy++
The process is ApplicationFrameHost.exe and with -Embedding parameter.
However, I run this command in PowerShell and turned out not work.
ApplicationFrameHost -Embedding
How do I run the Win10 camera APP via command line? Or I use C++, which function can achieve that?
Type follwing command in cmd.
start microsoft.windows.camera:

mutt: how can I open a subfolder that has subfolders? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I want to start using mutt again after about 15 years. I first want to use it to access my gmail account. I'm running into a simple problem now: how to open a subfolder (tag in gmail) that has subfolders of its own?
When I go to TODO/ and press enter mutt takes me into the TODO directory. I simply want to open the TODO tag. How can I do that?
To view messages outside your inbox, type c and either type ? to view a list of all your tags and folders, or prepend your tag with an equals sign. So, to view messages tagged 'work', you'd type c, then =work, then hit Return.
Found the info on this post

Github & Trello lists [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm working on a project that's just about done.
Now I just need a list that shows all the things I've worked on. Luckily I've been using Github and Trello to keep track of all my work.
Does anyone know how to get a simple list of commits/activities from any of these 2 services?
I just need a simple list like this:
Date:
Title:
Description:
I'm working on a Mac but I'm using the Github client.
Github: In the terminal, you can navigate to the folder that you are working in and type git log. It will give you a list of commits. If you would like to save it in a text file you could typegit log > commits.txt.
Trello: In Trello you can go to the board you are working on and select print form the menu. This will give you a list of activities.

C++ Passwd, Root Priviledges [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have written a c++ script that disables or enables users within a Solaris environment. This is done by calling the passwd through
sprintf(cmd, "/usr/bin/passwd -l %s", argv[1]);
However the script is not executed by root, but by another user.
While the script executes the passwd changes are not done. Seems this is an issue with the user permission on passwd.
However it seems that only root can modify passwd. Is this true? Can something else be done? In the sense that passwd can be modified by other users?
You need root permission in order to do that.
However, you can configure sudo to allow the execution of your binary as root for a specified user.
An other solution would be to setuid the binary. However, care must be taken when doing that.
The process should have CAP_SETUID capability and user id is to be set to 0.

Far Manager file view customization [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
maybe some of you use Far Manager as a file manager and could help me with this. I want to be able to call a custom command on viewing a file with a specific extension, i.e. when I press F3 (command for viewing the contents of a file), some custom command is executed on that file and the output is shown in Far Manager's view window.
Appreciate any ideas.
Found what I need - under Commands > File associations need to create new entry with needed file mask, then under View command (used for F3) add this - far:view < your command.
I wanted this to be able to view decompiled Java class files, so I did this:
file mask: *.class
view command: far:view < jad -p !.!