Jump to content


Problems logging in....permissions not right and more


  • Please log in to reply
27 replies to this topic

#1 OFFLINE   wa4chq

wa4chq

    Thread Head

  • Members
  • PipPipPipPipPipPip
  • 590 posts

Posted 29 January 2019 - 10:15 AM

Not a good morning all.....This morning first thing, I was going to boot up with my USB stick containing MX17....all went well but I noticed I was having a problem with "sudo".  I saw this

Quote

/usr/bin/sudo must be owned by uid 0 and have setuid bit set
  I've never had issues with su or sudo before.  I thought maybe it had something to do with how I logged in at boot thinking maybe I hit F6 instead of F5 for persistance.....so rebooted and still had problems with sudo.  So I halted and was going to reboot into slack.....but the lappy never seemed to shutdown.....just went to a blinking underscore......so I forced shutdown and rebooted.  I log in from cli and have startx and spectrwm as an alias so hitting x did not work.  Using ranger I looked at my .xinitrc file and I couldn't edit it.  I logged out and logged in as root and could not edit .xinitrc.  Even trying to mount other partions from cli gave me permission errors.

Yesterday I noticed something strange when booting to Archbang which is on another partition.  My prompt looked odd.  I use zsh and have it styled a certain way and it wasn't right.  I also had issues starting x with Archbang....

The only thing new is a printer which I got up and running...not with Slack (didn't setup a printer when I put slack 14.1 on laptop so that is why I was using MX17 on the thumbdrive)

Now I'm booted up with porteus on a thumb.  I'm gonna google the error message and see what I find.  I just wanted to post this in case someone has had this problem before......

Very sad....

Posted Image
REGISTERED LINUX USER #547579


#2 OFFLINE   wa4chq

wa4chq

    Thread Head

  • Members
  • PipPipPipPipPipPip
  • 590 posts

Posted 29 January 2019 - 10:32 AM

I've found some info from an Ubuntu site that talks about this problem.  The bottom line is the fix may be as simple as
chmod 4755 /usr/bin/sudo
  I've got more reading to do before I try that.

Posted Image
REGISTERED LINUX USER #547579


#3 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,274 posts

Posted 29 January 2019 - 11:36 AM

View Postwa4chq, on 29 January 2019 - 10:32 AM, said:

I've found some info from an Ubuntu site that talks about this problem.  The bottom line is the fix may be as simple as
chmod 4755 /usr/bin/sudo
  I've got more reading to do before I try that.

Yeah but how would that affect editing .xinitrc and your zsh shell?
Posted ImagePosted Image
Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#4 OFFLINE   wa4chq

wa4chq

    Thread Head

  • Members
  • PipPipPipPipPipPip
  • 590 posts

Posted 29 January 2019 - 12:32 PM

View Postsecuritybreach, on 29 January 2019 - 11:36 AM, said:

View Postwa4chq, on 29 January 2019 - 10:32 AM, said:

I've found some info from an Ubuntu site that talks about this problem.  The bottom line is the fix may be as simple as
chmod 4755 /usr/bin/sudo
  I've got more reading to do before I try that.

Yeah but how would that affect editing .xinitrc and your zsh shell?
good morning.....  I don't know.  The following is from quick notes this morning so may not be accurate.  From one of the sites I found this:
ls -l /usr/bin/sudo
ls -la /usr/bin | grep -v "root *root"
ls -la /usr/bin | grep "rwxr-xr-x\|^l"


And one of the things that I saw was user was not "wa4chq" and group was not "users"....it was "qrp" and "something else".  Also, as root and using MC, I noticed that my all the permissions for  /home/wa4chq were screwed up....

Posted Image
REGISTERED LINUX USER #547579


#5 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,274 posts

Posted 29 January 2019 - 12:41 PM

This is getting stranger and stranger.... :ermm:
Posted ImagePosted Image
Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#6 OFFLINE   wa4chq

wa4chq

    Thread Head

  • Members
  • PipPipPipPipPipPip
  • 590 posts

Posted 29 January 2019 - 01:23 PM

View Postsecuritybreach, on 29 January 2019 - 12:41 PM, said:

This is getting stranger and stranger.... :ermm:
It is very odd since.  I'm hoping that it's a simple fix.  IE if in MC I see that user "wa4chq" home has the wrong owner, ...owner was "wa4chq" and now it is "qrp" and group is "neil" instead of "users"and then somehow as root chown for wa4chq and have /home/wa4chq/ go back to normal ownership.  Might be wishful thinking...

Edited by wa4chq, 29 January 2019 - 02:07 PM.

Posted Image
REGISTERED LINUX USER #547579


#7 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,274 posts

Posted 29 January 2019 - 05:26 PM

Did you install QRP-Logger?? https://launchpad.net/qrp-logger

It's a ham radio app.
Posted ImagePosted Image
Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#8 OFFLINE   sunrat

sunrat

    Thread Kahuna

  • Forum Moderators
  • 5,808 posts

Posted 29 January 2019 - 07:34 PM

Wow, sounds nasty. I once accidentally changed all permissions to $user and was not able to recover. Root permissions are much too complex for a simple chown to fix. Hope you have your backups in order and current.
A burning question is how did this happen?
registered Linux user number 324659  ||    The importance of Reading The *Fine* Manual! :D
Posted ImagePosted ImagePosted ImagePosted Image
For the things we have to learn before we can do them, we learn by doing them.

#9 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,629 posts

Posted 29 January 2019 - 10:25 PM

You know, I just read somewhere yesterday or the day before that ZSH has a security flaw. I can't remember where I read that. I'll have to search. Please stand by...

Hmm... can't find the exact article/site, but I did find this: https://www.cvedetai...42/ZSH-ZSH.html
Posted Image

Posted Image

#10 OFFLINE   wa4chq

wa4chq

    Thread Head

  • Members
  • PipPipPipPipPipPip
  • 590 posts

Posted 30 January 2019 - 08:29 AM

View Postsecuritybreach, on 29 January 2019 - 05:26 PM, said:

Did you install QRP-Logger?? https://launchpad.net/qrp-logger

It's a ham radio app.
morning....no, as a hamster I use low power morse....QRP means low power, besides I'm still a pencil a paper kinda logger!  lol

Posted Image
REGISTERED LINUX USER #547579


#11 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,274 posts

Posted 30 January 2019 - 08:32 AM

View Postwa4chq, on 30 January 2019 - 08:29 AM, said:

View Postsecuritybreach, on 29 January 2019 - 05:26 PM, said:

Did you install QRP-Logger?? https://launchpad.net/qrp-logger

It's a ham radio app.
morning....no, as a hamster I use low power morse....QRP means low power, besides I'm still a pencil a paper kinda logger!  lol

I only asked as you mentioned a user called "qrp".
Posted ImagePosted Image
Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#12 OFFLINE   wa4chq

wa4chq

    Thread Head

  • Members
  • PipPipPipPipPipPip
  • 590 posts

Posted 30 January 2019 - 08:37 AM

View Postsunrat, on 29 January 2019 - 07:34 PM, said:

Wow, sounds nasty. I once accidentally changed all permissions to $user and was not able to recover. Root permissions are much too complex for a simple chown to fix. Hope you have your backups in order and current.
A burning question is how did this happen?
Morning....I wish I knew what happened.  The only thing I can thing of is when trying to get my printer set up.  Originally when bought this laptop Lenovo e420 I didn't set slackware 14.1 up for using a printer.  I bought a new printer last week and the only way to print was by booting MX17 on a thumb.  I thought maybe I'd try and get CUPs up and working using Slack.  I got it to recognize the printer but it didn't print....so I stopped.  The next day I noticed the problem with permissions.  Right now I'm logged in as root using Slack and KDE  (yikes! ;) )  I'm going to try adding a new user with it's own home directory.  Yesterday afternoon I tried it but made the old home it's home....that does not work!  Luckily all is backed up.

Posted Image
REGISTERED LINUX USER #547579


#13 OFFLINE   wa4chq

wa4chq

    Thread Head

  • Members
  • PipPipPipPipPipPip
  • 590 posts

Posted 30 January 2019 - 08:41 AM

View PostV.T. Eric Layton, on 29 January 2019 - 10:25 PM, said:

You know, I just read somewhere yesterday or the day before that ZSH has a security flaw. I can't remember where I read that. I'll have to search. Please stand by...

Hmm... can't find the exact article/site, but I did find this: https://www.cvedetai...42/ZSH-ZSH.html
Morning...I'll have to read it.  tnx.  I've been using zsh for years and never had a problem.  I believe the problem in my case is pilot error.  I'm the type of guy that if I see a blank piece of paper I have to scribble something on it.  Same thing ever since I started "messing" with computers.  I can't stop messing with it...lol....that's why things are messed up now!  lol
...just glanced at the article....not sure I understand what they are saying....will dig deeper.

Edited by wa4chq, 30 January 2019 - 08:43 AM.

Posted Image
REGISTERED LINUX USER #547579


#14 OFFLINE   wa4chq

wa4chq

    Thread Head

  • Members
  • PipPipPipPipPipPip
  • 590 posts

Posted 30 January 2019 - 08:47 AM

View Postsecuritybreach, on 30 January 2019 - 08:32 AM, said:

View Postwa4chq, on 30 January 2019 - 08:29 AM, said:

View Postsecuritybreach, on 29 January 2019 - 05:26 PM, said:

Did you install QRP-Logger?? https://launchpad.net/qrp-logger

It's a ham radio app.
morning....no, as a hamster I use low power morse....QRP means low power, besides I'm still a pencil a paper kinda logger!  lol

I only asked as you mentioned a user called "qrp".
To be honest, I've never heard of QRP-logger.  I know there are loggers out there, I just haven't looked into them.

Posted Image
REGISTERED LINUX USER #547579


#15 OFFLINE   wa4chq

wa4chq

    Thread Head

  • Members
  • PipPipPipPipPipPip
  • 590 posts

Posted 30 January 2019 - 11:21 AM

OK...tried adding a new user named "yaesu" with home directory "/home/yaesu".  Using xwmconfig I've tried to KDE, xfce and wmaker.  Then when typing "startx" I get an error message saying

Quote

Fatal server error
(ee) can't move old logfile "/var/log/Xorg.0.log" to "/var/log/Xorg.0.log.old"
But as root I can changer window managers and startx no problem.....  so not sure if it's worth trying to figure this one out.  I'm leaning towards making sure all the important stuff is backed up and re-installing Slack.....not sure if I mentioned but even my Archbang user is messed up.....not a big deal all the way around.  I don't really use it except as another place to store stuff....

Posted Image
REGISTERED LINUX USER #547579


#16 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,274 posts

Posted 30 January 2019 - 12:44 PM

View Postwa4chq, on 30 January 2019 - 11:21 AM, said:

OK...tried adding a new user named "yaesu" with home directory "/home/yaesu".  Using xwmconfig I've tried to KDE, xfce and wmaker.  Then when typing "startx" I get an error message saying

Quote

Fatal server error
(ee) can't move old logfile "/var/log/Xorg.0.log" to "/var/log/Xorg.0.log.old"
But as root I can changer window managers and startx no problem.....  so not sure if it's worth trying to figure this one out.  I'm leaning towards making sure all the important stuff is backed up and re-installing Slack.....not sure if I mentioned but even my Archbang user is messed up.....not a big deal all the way around.  I don't really use it except as another place to store stuff....

I would test your harddrive for errors, back up everything and reinstall.
Posted ImagePosted Image
Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#17 OFFLINE   wa4chq

wa4chq

    Thread Head

  • Members
  • PipPipPipPipPipPip
  • 590 posts

Posted 30 January 2019 - 04:09 PM

View Postsecuritybreach, on 30 January 2019 - 12:44 PM, said:

View Postwa4chq, on 30 January 2019 - 11:21 AM, said:

OK...tried adding a new user named "yaesu" with home directory "/home/yaesu".  Using xwmconfig I've tried to KDE, xfce and wmaker.  Then when typing "startx" I get an error message saying

Quote

Fatal server error
(ee) can't move old logfile "/var/log/Xorg.0.log" to "/var/log/Xorg.0.log.old"
But as root I can changer window managers and startx no problem.....  so not sure if it's worth trying to figure this one out.  I'm leaning towards making sure all the important stuff is backed up and re-installing Slack.....not sure if I mentioned but even my Archbang user is messed up.....not a big deal all the way around.  I don't really use it except as another place to store stuff....

I would test your harddrive for errors, back up everything and reinstall.
OK SB, tnx for the info....MX17 has GSmartControl.  I will have to read more about it but I just ran the extended self-test and it passed.  I'm toying with the idea of pulling the hard drive and buying a new one ($36).  Everything on the old drive will be saved and available for later when I can take my time and go thru it properly.

Posted Image
REGISTERED LINUX USER #547579


#18 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,629 posts

Posted 30 January 2019 - 07:04 PM

Yaesu? You ol' hamsters just can't get way from it, huh? ;)
Posted Image
Posted Image

Posted Image

#19 OFFLINE   wa4chq

wa4chq

    Thread Head

  • Members
  • PipPipPipPipPipPip
  • 590 posts

Posted 31 January 2019 - 09:48 AM

Been a yaesu dude for many years!  Went ahead and ordered a new hard drive and a copy of 14.2.  When they come in I'll decide if I wanna dual boot...Slackware and maybe with something like MX-17?
Posted Image

Edited by wa4chq, 31 January 2019 - 09:50 AM.

Posted Image
REGISTERED LINUX USER #547579


#20 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,274 posts

Posted 02 February 2019 - 11:39 AM

I never messed with ham radio but I always thought it would be neat to do so. Another thing that I never got around to doing..
Posted ImagePosted Image
Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#21 OFFLINE   wa4chq

wa4chq

    Thread Head

  • Members
  • PipPipPipPipPipPip
  • 590 posts

Posted 02 February 2019 - 12:34 PM

View Postsecuritybreach, on 02 February 2019 - 11:39 AM, said:

I never messed with ham radio but I always thought it would be neat to do so. Another thing that I never got around to doing..
It's very different from when I first got licensed back in '72.  Knowing morse code was a requirement...5wpm for Novice, 13wpm for General and 20wpm for Extra.  I happen to enjoy code so upgrading was not a problem.  Today, knowing code is not required......(boo) so getting your ticket is just knowiing some theory, rules etc. and then go take the test.  I was interested with Ham Radio at an early age because my dad was very active when I was a kid (he still is licensed but not active).  I didn't get into computers until very late in life....mid-90's.  Everybody I knew just used them for printing docs and keeping tabs with theirs bills etc.  Believe it or not, when I first got on the internet and discovered Arachne web browser, I thought it was an OS....using it required DOS and an external modem.  I loved hearing the modem make it's noise!  lol....  Back then during my morning commute to work, I'd chat to some of the local hams....lotta fun.  That is where the guys talked about burning solder and linux.  lol....sorry for the trip down memory lane....lol

Posted Image
REGISTERED LINUX USER #547579


#22 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,629 posts

Posted 03 February 2019 - 01:11 AM

View Postsecuritybreach, on 02 February 2019 - 11:39 AM, said:

I never messed with ham radio but I always thought it would be neat to do so. Another thing that I never got around to doing..

It's never too late.
Posted Image

Posted Image

#23 OFFLINE   V.T. Eric Layton

V.T. Eric Layton

    Nocturnal Slacker

  • Forum Admins
  • 21,629 posts

Posted 03 February 2019 - 01:17 AM

I never got my ham license. I was an avid chicken-beater (CB radio) from about 1970 till the mid-80s. I ran mostly illegal rigs (illegal channels, linear amps, etc.) My ham experience was from my service work. I was a component level tech for RF comm [business, marine, and some ham (2 and 10 meter rigs, mostly)]. I was familiar with the Yaesu name you used above because I was an authorized tech for them at one time.

Ah... the memories. :)

P.S. Cluttermagnet (David) is a big ham enthusiast, technician, and tinkerer. He's posted some interesting stuff on my private forum (The Cabin In the Woods). If you'd like to visit, Neil, just drop me a PM here with your email addy and I'll send you an invite.
Posted Image

Posted Image

#24 OFFLINE   abarbarian

abarbarian

    Thread Kahuna

  • Forum MVP
  • 5,667 posts

Posted 03 February 2019 - 08:17 AM

View Postwa4chq, on 31 January 2019 - 09:48 AM, said:

Been a yaesu dude for many years!  Went ahead and ordered a new hard drive and a copy of 14.2.  When they come in I'll decide if I wanna dual boot...Slackware and maybe with something like MX-17?
Posted Image

https://linuxtracker...s&category=2177

You might be better of with MX-18 :tease:
Install ARCH
You'll never need to install it again
"I did and I'm really happy"

Posted Image~~~~~~~~~~~~~Posted Image

#25 OFFLINE   wa4chq

wa4chq

    Thread Head

  • Members
  • PipPipPipPipPipPip
  • 590 posts

Posted 03 February 2019 - 03:04 PM

View PostV.T. Eric Layton, on 03 February 2019 - 01:17 AM, said:

I never got my ham license. I was an avid chicken-beater (CB radio) from about 1970 till the mid-80s. I ran mostly illegal rigs (illegal channels, linear amps, etc.) My ham experience was from my service work. I was a component level tech for RF comm [business, marine, and some ham (2 and 10 meter rigs, mostly)]. I was familiar with the Yaesu name you used above because I was an authorized tech for them at one time.

Ah... the memories. :)

P.S. Cluttermagnet (David) is a big ham enthusiast, technician, and tinkerer. He's posted some interesting stuff on my private forum (The Cabin In the Woods). If you'd like to visit, Neil, just drop me a PM here with your email addy and I'll send you an invite.
Fine business OM.....I never was a CB'r but I would do the "breaker 19" if a buddy had one in his car.....lol
OK about being an authorized tech for Yaesu.  I have two more rigs from Yaesu but they are just for 2m.....I really never get on that band anymore....but using 2m and 70cm?? split a lot of guys are communicating thru AMSATs...amateur satellites.  I made a 2m beam for the downlink a few years ago and enjoyed hearing some of the quick exchanges.....hey, like you said, it's never too late.....

View Postabarbarian, on 03 February 2019 - 08:17 AM, said:

View Postwa4chq, on 31 January 2019 - 09:48 AM, said:

Been a yaesu dude for many years!  Went ahead and ordered a new hard drive and a copy of 14.2.  When they come in I'll decide if I wanna dual boot...Slackware and maybe with something like MX-17?
Posted Image

https://linuxtracker...s&category=2177

You might be better of with MX-18 :tease:
  Yes, that may be better than 17......tnx!

Posted Image
REGISTERED LINUX USER #547579





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users