[SOLVED] Slackware64-current - after last update receiving "Permission denies" as root and need to use sudo which works
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware_x64 15.0 and slackware-current
Posts: 33
Rep:
Slackware64-current - after last update receiving "Permission denies" as root and need to use sudo which works
I have an interesting problem. I have two systems and today I used slackpkg to update both my slackware64-current systems. One system has no problems. The other system seems to have some permission issues. For example when I execute lilo as root, I get "Fatal: rename /boot/map~ /boot/map: Permission denied" When I execute sudo lilo (as root) it works fine. rm also fails with permission denied as root and works as sudo.
Sure hoping someone has seen this before. Please let me know what additional info you need from me.
Thanks in advance
Last edited by rwyarbrough; 03-30-2023 at 06:40 PM.
The last update I am on is "Wed Mar 29 20:56:21 UTC 2023"
I'm not seeing any issues running lilo. Just tested it. "rm" is working fine too.
I also use slackpkg to update my systems.
If a recall there was a prompt for configuration changes "*.new" files on I believe a pam related one in a recent update. I choose (P)rompt, then (O}verwrite since I have no customization.
Last edited by chrisretusn; 03-31-2023 at 10:08 PM.
Distribution: Slackware_x64 15.0 and slackware-current
Posts: 33
Original Poster
Rep:
I suspect its not upgrade related
I suspect its not upgrade related, so let's for the moment not let that distort the issue. I must have done something during the process however and I don't know what. Could it be something with shadow or password? What would cause this type of behavior?
* login in as root, getting permission denied on files owned by root. mv and rm is one common command issue occurs with.
* use sudo rm or sudo mv and no problems
.
Last edited by rwyarbrough; 03-30-2023 at 10:04 PM.
Reason: added clarity
* login in as root, getting permission denied on files owned by root. mv and rm is one common command issue occurs with.
* use sudo rm or sudo mv and no problems
After login as root, what does command 'id' tell you? (Should be uid=0).
Last edited by Petri Kaukasoina; 03-31-2023 at 12:22 AM.
Had this once. Logged in as root, tinkered with the system settings, it told me somewhere that permissions are not OK so "click this button to correct this".
Had this once. Logged in as root, tinkered with the system settings, it told me somewhere that permissions are not OK so "click this button to correct this".
root doesn't not need explicit permissions
So, his issue is not about that
Distribution: Slackware_x64 15.0 and slackware-current
Posts: 33
Original Poster
Rep:
Solved! problem was with alias
Did some experimenting and testing with different directories etc.
I had setup an alias for rm some years ago -- alias rm='trash-put -v'
I unaliased it and it started working ok.
For some reason that was causing some issues... not sure why. Have any ideas?
I'd like to keep the trashcan function, I do everything through the command line.
.
Last edited by rwyarbrough; 03-31-2023 at 06:10 PM.
Reason: more clarity
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.