Not login to system due to changing permission [closed] - linux

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.

Related

Why should I execute these commands? [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
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.

Does sudoers file required to restart to take changes effect [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
Does sudoers file required to restart to take changes effect. If yes, then how we can restart? without resarting the system.
If your question is : "do I need to restart my machine if I add someone in the sudoers file ?" the answer is : No, you don't need to restart, the newly user added in the sudoers will be able to use sudo as soon as you save the file.

Updating on linux [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
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.

How can i jail a user in linux? [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
That's is the question.. how can i jail a user in a certain folder so that he can create files like images but can no go up using the command cd .. or see other folders outside?
Thanks.
Read about chroot http://linux.die.net/man/1/chroot
You can even create a minimal environment for the user
Alternatively just use file permissions so that the user is only able to see what the user should be able to.

why are the files under "/root" directory showed on desktop in centos after I deleted "/root/Desktop" folder [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 9 years ago.
Improve this question
I deleted the folder Desktop/ under /root directory, and when I restart my centos, I found all the files under ~ (/root, I logged on as root) are showed on desktop, why this happened? how can I fix this? thanks.
If you make the ~/Desktop folder again, your desktop should revert to that.

Resources