Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  

"First things first -- but not necessarily in that order" -- The Doctor, "Doctor Who"


rocksolid / Helpdesk / Screwed Up With Permissions

SubjectAuthor
* Screwed Up With PermissionsAnonymous
+* Re: Screwed Up With PermissionsAnonymous
|`- Re: Screwed Up With PermissionsAnonymous
`* Re: Screwed Up With PermissionsAnonymous
 `* Re: Screwed Up With PermissionsAnonymous
  `* Re: Screwed Up With PermissionsAnonymous
   `- Re: Screwed Up With PermissionsAnonymous

1
Subject: Screwed Up With Permissions
From: Anonymous
Newsgroups: rocksolid.shared.helpdesk
Organization: novaBBS
Date: Sat, 8 May 2021 16:06 UTC
Date: Sat, 8 May 2021 16:06:49 +0000
Subject: Screwed Up With Permissions
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
From: Anonym...@news.novabbs.com (Anonymous)
Newsgroups: rocksolid.shared.helpdesk
X-Rslight-Site: $2y$10$e8Tp.TjTa50NtriOh9nTXONxENh.ufdml02edD4L9VLjCzF7yM0r6
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
Organization: novaBBS
Message-ID: <cb8a1cc4d56c39a714b2a5fc76f33c04@news.novabbs.com>
View all headers
I think I really need help. I'm working on a Debian 10 system, and I accidentally changed the permissions of the /usr directory to 764. Now I can't get back in. Can anyone please tell me how to fix this?
--
Posted on novaBBS



Subject: Re: Screwed Up With Permissions
From: Anonymous
Newsgroups: rocksolid.shared.helpdesk
Organization: novaBBS
Date: Sat, 8 May 2021 16:58 UTC
Date: Sat, 8 May 2021 16:58:55 +0000
Subject: Re: Screwed Up With Permissions
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
From: Anonym...@news.novabbs.com (Anonymous)
Newsgroups: rocksolid.shared.helpdesk
X-Rslight-Site: $2y$10$kh49L41xkeGsFv9XYsD1aOYE9e7S1WzxYrnhwVGNSgfC7H8.suh/i
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
References: <cb8a1cc4d56c39a714b2a5fc76f33c04@news.novabbs.com>
Organization: novaBBS
Message-ID: <4b8efe07730191ad4390b535404d26cc@news.novabbs.com>
View all headers
I have fixed it through recovery mode. Sorry. I just got a little panicked.
--
Posted on novaBBS



Subject: Re: Screwed Up With Permissions
From: Anonymous
Newsgroups: rocksolid.shared.helpdesk
Organization: Rocksolid Light
Date: Sat, 8 May 2021 22:28 UTC
Path: i2pn2.org!.POSTED.10.136.143.187!not-for-mail
From: Anonym...@news.novabbs.org (Anonymous)
Newsgroups: rocksolid.shared.helpdesk
Subject: Re: Screwed Up With Permissions
Date: Sat, 8 May 2021 22:28:35 +0000
Organization: Rocksolid Light
Message-ID: <2f3d1c7df82b40bddb03a537e8dd8861@news.novabbs.org>
References: <cb8a1cc4d56c39a714b2a5fc76f33c04@news.novabbs.com> <4b8efe07730191ad4390b535404d26cc@news.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1"; posting-host="10.136.143.187";
logging-data="1222"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.org
X-Rslight-Site: $2y$10$VorKdKjanNUPQAE2W2fVzurX3Osc/U62D/SwMfHHnsnsa2BbXFYSO
View all headers
Anonymous wrote:

I think I really need help. I'm working on a Debian 10 system, and I accidentally changed the permissions of the /usr directory to 764. Now I can't get back in. Can anyone please tell me how to fix this?

chmod should do the trick. If you already changed the perms that means you have root access, so as root just use chmod (man chmod) and it will be fine. And only run as root to do some task, then switch back to a regular user.

I have fixed it through recovery mode. Sorry. I just got a little panicked.

We've all been there :)
--
Posted on Rocksolid Light


Subject: Re: Screwed Up With Permissions
From: Anonymous
Newsgroups: rocksolid.shared.helpdesk
Organization: Rocksolid Light
Date: Sun, 9 May 2021 01:37 UTC
Path: i2pn2.org!.POSTED.10.136.143.187!not-for-mail
From: Anonym...@news.novabbs.org (Anonymous)
Newsgroups: rocksolid.shared.helpdesk
Subject: Re: Screwed Up With Permissions
Date: Sun, 9 May 2021 01:37:27 +0000
Organization: Rocksolid Light
Message-ID: <57eb1785b407a7991057527f89110a32@news.novabbs.org>
References: <cb8a1cc4d56c39a714b2a5fc76f33c04@news.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1"; posting-host="10.136.143.187";
logging-data="5470"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.org
X-Rslight-Site: $2y$10$F7.gyMgF1Z9XQD3VqacwqeZVWYa89bEuyXjd5OrbCPZ6fyQUqUcxG
View all headers
And yay! Guess what! I just screwed up even more! I screwed up so much that the root user doesn’t even have permissions anymore!

How I just mess things up...

I honestly don’t really know what I did. I changed permissions for certain directories and files, as said above. However, I also remember deleting a couple of things through deborphan. Although I doubt that alone could cause such a mess. I noticed some security updates that were needed for my Debian system, and I applied them, thus rebooting the operating system.

Here are some things I noticed when I rebooted in:

1. My webserver wasn’t loading
2. Nobody had any permissions and special privileges. Not even root.
3. There were ZERO files I could open. Extra note is that, when I tried to open them, they gave me a ‘No applications found for “shared library” files’ error.

Then I powered Debian off and tried to get back in. It said that just about EVERYTHING failed to start. That includes the graphical interface.

I went into rescue mode, and while it was loading, there appeared to be some errors like:

“Failed to start: Create Volatile Files and Directories”
“Times out waiting for device: /dev/di id/38f50392-87ad-4cc1(Did not capture beyond this point)
“Dependency failed for: /dev/disk/by-uuid/38f50392-87ad-4cc1(Did not capture beyond this point)
“Dependency failed for: Swap”

After trying to run journalctl -xb, I got:
“Failed to execute ‘pager’, using next fallback pager: Permission denied”
“Failed to execute ‘less’, using next fallback pager: Permission denied”
“Failed to execute ‘more’, using next fallback pager: Permission denied”

I REALLY need help. If anybody is familiar with these situations or errors, has any advice, or knows how to help with this sticky situation, it would be VERY much appreciated.
--
Posted on Rocksolid Light


Subject: Re: Screwed Up With Permissions
From: Anonymous
Newsgroups: rocksolid.shared.helpdesk
Organization: Rocksolid Light
Date: Sun, 9 May 2021 02:11 UTC
Path: i2pn2.org!.POSTED.10.136.143.187!not-for-mail
From: Anonym...@news.novabbs.org (Anonymous)
Newsgroups: rocksolid.shared.helpdesk
Subject: Re: Screwed Up With Permissions
Date: Sun, 9 May 2021 02:11:18 +0000
Organization: Rocksolid Light
Message-ID: <52f89bfb351bfb2667b99fb47baf204a@news.novabbs.org>
References: <cb8a1cc4d56c39a714b2a5fc76f33c04@news.novabbs.com> <57eb1785b407a7991057527f89110a32@news.novabbs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1"; posting-host="10.136.143.187";
logging-data="11765"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.org
X-Rslight-Site: $2y$10$DpfEiSffEV61dyC6CzTvjOZFKfb416sdnX1klBwzCbxzEEH1JLK9.
View all headers
Anonymous wrote:

And yay! Guess what! I just screwed up even more! I screwed up so much that the root user doesn’t even have permissions anymore!

Do you get 'Permission denied' or some other error message when trying as root?

I honestly don’t really know what I did. I changed permissions for certain directories and files, as said above. However, I also remember deleting a couple of things through deborphan. Although I doubt that alone could cause such a mess. I noticed some security updates that were needed for my Debian system, and I applied them, thus rebooting the operating system.

Unless you have some specific reason to change permission on things, it's usually best to leave them alone. Debian does a reasonable job of setting proper permissions during install. Changing things is asking for trouble.

If you stick with apt-get, etc. It's usually safer. It's very tempting to think there is an issue and go crazy doing non-standard things to "fix" it only to find you break your entire install. Most of us have done that early on with linux and learned from it.

Here are some things I noticed when I rebooted in:

1. My webserver wasn’t loading
2. Nobody had any permissions and special privileges. Not even root.
3. There were ZERO files I could open. Extra note is that, when I tried to open them, they gave me a ‘No applications found for “shared library” files’ error.

...trim

Probably the fastest solution is to reinstall, and then don't start changing things without noting each change, and how you could revert if necessary.

Also, are you running in a VM? Maybe out of disk space? Even if the VM says there is space the host might be out of space. Just a thought.

I REALLY need help. If anybody is familiar with these situations or errors, has any advice, or knows how to help with this sticky situation, it would be VERY much appreciated.

Reinstall and then restrain yourself from making a ton of changes. Trust Debian. It's no where near perfect, but it usually will work properly if you leave it alone.
--
Posted on Rocksolid Light


Subject: Re: Screwed Up With Permissions
From: Anonymous
Newsgroups: rocksolid.shared.helpdesk
Organization: Rocksolid Light
Date: Thu, 13 May 2021 21:48 UTC
Path: i2pn2.org!.POSTED.10.136.143.187!not-for-mail
From: Anonym...@news.novabbs.org (Anonymous)
Newsgroups: rocksolid.shared.helpdesk
Subject: Re: Screwed Up With Permissions
Date: Thu, 13 May 2021 21:48:57 +0000
Organization: Rocksolid Light
Message-ID: <53142bd020d192029104827f3f2902bd@news.novabbs.org>
References: <cb8a1cc4d56c39a714b2a5fc76f33c04@news.novabbs.com> <57eb1785b407a7991057527f89110a32@news.novabbs.org> <52f89bfb351bfb2667b99fb47baf204a@news.novabbs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1"; posting-host="10.136.143.187";
logging-data="10380"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.org
X-Rslight-Site: $2y$10$HAw9RrAQZGlWu7mVgK4kzO0kkcIq3TUhzPbenhgvzR3GgrCLEg/4u
View all headers
Sorry it took me so long to reply. I was doing a tedious reinstallation of Debian 10. I have learned my lesson and I won’t mess with things I don’t understand fully again. Thanks for trying to help me. Hope I don’t screw things up again sometime in the future...
--
Posted on Rocksolid Light


Subject: Re: Screwed Up With Permissions
From: Anonymous
Newsgroups: rocksolid.shared.helpdesk
Organization: Rocksolid Light
Date: Thu, 13 May 2021 23:31 UTC
Path: i2pn2.org!.POSTED.10.136.143.187!not-for-mail
From: Anonym...@news.novabbs.org (Anonymous)
Newsgroups: rocksolid.shared.helpdesk
Subject: Re: Screwed Up With Permissions
Date: Thu, 13 May 2021 23:31:23 +0000
Organization: Rocksolid Light
Message-ID: <1ea7d3216f6caafe309c21a6959eedd9@news.novabbs.org>
References: <cb8a1cc4d56c39a714b2a5fc76f33c04@news.novabbs.com> <57eb1785b407a7991057527f89110a32@news.novabbs.org> <52f89bfb351bfb2667b99fb47baf204a@news.novabbs.org> <53142bd020d192029104827f3f2902bd@news.novabbs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1"; posting-host="10.136.143.187";
logging-data="31262"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.org
X-Rslight-Site: $2y$10$FZyOQuXKr0X.2o7eASeiHuXON1WMxAtfjPAUWMcjpTbwFWRd.ddp.
View all headers
Anonymous wrote:

Sorry it took me so long to reply. I was doing a tedious reinstallation of Debian 10. I have learned my lesson and I won’t mess with things I don’t understand fully again. Thanks for trying to help me. Hope I don’t screw things up again sometime in the future...

Thanks for following up. Good to know you didn't give up!

Many times in the past I would jump in to "fix" something in a Linux install by using all sorts of non-standard steps and I broke things often. Finally I learned to trust the distro and it's tools, and if there is a bug in there it's most likely being discussed somewhere online. Whatever I was trying to fix probably wasn't broken in the first place :)
--
Posted on Rocksolid Light


1
rocksolid light 0.6.9
clearneti2ptor