LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-30-2023, 06:38 PM   #1
rwyarbrough
Member
 
Registered: Oct 2003
Location: Mesquite, Texas
Distribution: Slackware_x64 15.0 and slackware-current
Posts: 33

Rep: Reputation: 2
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.
 
Old 03-30-2023, 07:40 PM   #2
rwyarbrough
Member
 
Registered: Oct 2003
Location: Mesquite, Texas
Distribution: Slackware_x64 15.0 and slackware-current
Posts: 33

Original Poster
Rep: Reputation: 2
Information Update

All files are owned by root:root
 
Old 03-30-2023, 08:41 PM   #3
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
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.
 
Old 03-30-2023, 09:03 PM   #4
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,535

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
I'm not using lilo, but I was logged in as root (via console) to upgrade some nvidia drivers, and no problems. (I'm patched to current on current.)
 
Old 03-30-2023, 09:55 PM   #5
rwyarbrough
Member
 
Registered: Oct 2003
Location: Mesquite, Texas
Distribution: Slackware_x64 15.0 and slackware-current
Posts: 33

Original Poster
Rep: Reputation: 2
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
 
Old 03-31-2023, 12:20 AM   #6
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,781

Rep: Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459Reputation: 1459
Quote:
Originally Posted by rwyarbrough View Post
* 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.
 
1 members found this post helpful.
Old 03-31-2023, 02:16 AM   #7
dubiousa
Member
 
Registered: Jul 2020
Location: Crete
Distribution: Slackware-current_x86-64
Posts: 72

Rep: Reputation: Disabled
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".
 
Old 03-31-2023, 03:53 AM   #8
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,354

Rep: Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066Reputation: 4066
Quote:
Originally Posted by dubiousa View Post
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
 
Old 03-31-2023, 05:26 PM   #9
rwyarbrough
Member
 
Registered: Oct 2003
Location: Mesquite, Texas
Distribution: Slackware_x64 15.0 and slackware-current
Posts: 33

Original Poster
Rep: Reputation: 2
id output

Quote:
Originally Posted by Petri Kaukasoina View Post
After login as root, what does command 'id' tell you? (Should be uid=0).
>id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),17(audio),502(library)

>sudo id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),17(audio),502(library)

Last edited by rwyarbrough; 03-31-2023 at 05:28 PM.
 
Old 03-31-2023, 06:07 PM   #10
rwyarbrough
Member
 
Registered: Oct 2003
Location: Mesquite, Texas
Distribution: Slackware_x64 15.0 and slackware-current
Posts: 33

Original Poster
Rep: Reputation: 2
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
 
Old 03-31-2023, 06:39 PM   #11
rwyarbrough
Member
 
Registered: Oct 2003
Location: Mesquite, Texas
Distribution: Slackware_x64 15.0 and slackware-current
Posts: 33

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by rwyarbrough View Post
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.
Well, did some more testing and put the aliases back in... I'm stumped. Everything is working now like there was never a problem... Darn gremlins....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sudo apt update and sudo apt-get update giving error cryptonic472 Linux - Software 7 08-24-2019 08:16 AM
[SOLVED] Last current update crash my Slackware64 mchagas Slackware 6 02-17-2017 07:29 AM
Root account denies permission alebec271 Linux - Newbie 4 07-28-2015 04:13 PM
Not receiving mails from only root user(receiving from others) in RHEL 4.5 narunice Linux - General 1 11-18-2010 08:20 AM
Sudo Su denies password accepted bu just Su arew264 Linux - Software 2 09-29-2005 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration