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
I found these commands in a tutorial to setup selenium on linux. I'm not sure what they do, or why they are needed.
sudo chown root:root /usr/bin/chromedriver
sudo chmod +x /usr/bin/chromedriver
The post in question is here:
https://www.ultralinux.org/post/how-to-install-selenium-python-in-linux/
The first command make the superuser the owner of chromedriver. This is a good idea for programs that are installed in /usr/bin, to prevent ordinary users from modifying them (I assume the file is only writable by the owner, which is the usual default).
The second command adds execute permission for the user, group and others. This ensures that anyone can run the program.
Related
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 6 years ago.
Improve this question
How can I configure Linux to see the prompt for the root password if Sam try to execute the following command: $ sudo mkdir /opt/test?
If Sam is part of sudoers, the terminal ask for the user password not for the root password.
In /etc/sudoers, add this line:
Defaults rootpw
Make sure you use visudo for editing this file. For more information, you can check the link
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 am using Linux system but by mistake I fired a chmod command as follows:-
chmod -R 777 /
after that I restart my System. But when I try to login, the system is login but after 2-3 seconds again to login window. Please help me to solve this problem.
Just get your important files and configs backup them. format the partition which the OS installed, then reinstall again, sorry there is no easy way to correct these permissions.
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
When I try to change user to root, I get below error
➜ ~ su
Password:
Cannot execute /usr/local/bin/fish: No such file or directory
Any idea how do I get rid of this? I do not have fish installed now. I had installed it earlier.
I did the following and it worked for me.
Did "sudo bash" and got logged in as root. Was not able to login as root using normal "su" as it was throwing the error related to fish.
Deleted all traces of fish and zsh
logged out and logged in with my normal user name. Now , the default shell bash is working fine.
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
When I enter the command:
apt-get update
I get an error message telling me that it cant open the lock file. Can anyone explain why this causes a problem and how I can avoid it in the future?
cant open the lock file
You can 2 reasons of this problem:
you run apt-get update without administrative privileges. Use sudo or login as root.
in your system running another apt-get, aptitude, synaptic, Software Center or Update Manager. Close it ant try again.
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 9 years ago.
Improve this question
I am trying to run a project that requires user to be in procmod group.
What is it, and how do I add a user to that group?
Use following command to add user to procmod group
sudo chgrp procmod executablepath
Apple script
do shell script "sudo chgrp procmod executablepath" with administrator privileges
procmod user can use task_for_pid function (Tiger os).
From taskgated -- task_for_pid access control daemon
the old (Tiger) convention that a process with a primary effective
group of procmod or
procview is allowed to get task ports