Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. A bit of a stuff-up

A bit of a stuff-up

Scheduled Pinned Locked Moved The Lounge
linuxtoolsquestionlearning
13 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ryan Binns
    wrote on last edited by
    #1

    One of my coworkers was doing some admin work on a Solaris box yesterday. This involved manually editing the password file to change the default shell for root. Unfortunately, he changed the shell to a path that was non-existant. Of course, after that, every time he logged in as root, he gets logged off immediately because the shell doesn't exist. We could log in as other users, but couldn't edit the password file because it's writable by root only. Normally, this would require a clean installation, but in this case we were lucky (??). One of the other workers had a setuid script that executed a shell as root, and we could change the shell back. This script saved us this time, but has since been deleted for obvious reasons :~ :doh:!!

    Ryan

    "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

    L M J N A 7 Replies Last reply
    0
    • R Ryan Binns

      One of my coworkers was doing some admin work on a Solaris box yesterday. This involved manually editing the password file to change the default shell for root. Unfortunately, he changed the shell to a path that was non-existant. Of course, after that, every time he logged in as root, he gets logged off immediately because the shell doesn't exist. We could log in as other users, but couldn't edit the password file because it's writable by root only. Normally, this would require a clean installation, but in this case we were lucky (??). One of the other workers had a setuid script that executed a shell as root, and we could change the shell back. This script saved us this time, but has since been deleted for obvious reasons :~ :doh:!!

      Ryan

      "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Ouch!! :doh: :laugh: :laugh: Paul ;)

      That demands capital punishment!! Death by a herd of marauding Bobs! - Ryan Binns

      1 Reply Last reply
      0
      • R Ryan Binns

        One of my coworkers was doing some admin work on a Solaris box yesterday. This involved manually editing the password file to change the default shell for root. Unfortunately, he changed the shell to a path that was non-existant. Of course, after that, every time he logged in as root, he gets logged off immediately because the shell doesn't exist. We could log in as other users, but couldn't edit the password file because it's writable by root only. Normally, this would require a clean installation, but in this case we were lucky (??). One of the other workers had a setuid script that executed a shell as root, and we could change the shell back. This script saved us this time, but has since been deleted for obvious reasons :~ :doh:!!

        Ryan

        "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

        M Offline
        M Offline
        Megan Forbes
        wrote on last edited by
        #3

        Ryan Binns wrote: This script saved us this time, but has since been deleted for obvious reasons Should it ever be needed again you might be surprised to find how many people in your office have backed it up, put copies under their beds, in the safe... :-D


        Look at the world about you and trust to your own convictions. - Ansel Adams
        Meg's World - Blog Photography - The product of my passion

        R 1 Reply Last reply
        0
        • M Megan Forbes

          Ryan Binns wrote: This script saved us this time, but has since been deleted for obvious reasons Should it ever be needed again you might be surprised to find how many people in your office have backed it up, put copies under their beds, in the safe... :-D


          Look at the world about you and trust to your own convictions. - Ansel Adams
          Meg's World - Blog Photography - The product of my passion

          R Offline
          R Offline
          Ryan Binns
          wrote on last edited by
          #4

          Megan Forbes wrote: Should it ever be needed again you might be surprised to find how many people in your office have backed it up, put copies under their beds, in the safe... Unlikely. It's an isolated network (defense security and stuff...), and nobody else knew it existed, well not that they'll admit anyway ;)

          Ryan

          "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

          M 1 Reply Last reply
          0
          • R Ryan Binns

            Megan Forbes wrote: Should it ever be needed again you might be surprised to find how many people in your office have backed it up, put copies under their beds, in the safe... Unlikely. It's an isolated network (defense security and stuff...), and nobody else knew it existed, well not that they'll admit anyway ;)

            Ryan

            "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

            M Offline
            M Offline
            Megan Forbes
            wrote on last edited by
            #5

            So you're enjoying it there? :)


            Look at the world about you and trust to your own convictions. - Ansel Adams
            Meg's World - Blog Photography - The product of my passion

            1 Reply Last reply
            0
            • R Ryan Binns

              One of my coworkers was doing some admin work on a Solaris box yesterday. This involved manually editing the password file to change the default shell for root. Unfortunately, he changed the shell to a path that was non-existant. Of course, after that, every time he logged in as root, he gets logged off immediately because the shell doesn't exist. We could log in as other users, but couldn't edit the password file because it's writable by root only. Normally, this would require a clean installation, but in this case we were lucky (??). One of the other workers had a setuid script that executed a shell as root, and we could change the shell back. This script saved us this time, but has since been deleted for obvious reasons :~ :doh:!!

              Ryan

              "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

              J Offline
              J Offline
              Jeremy Falcon
              wrote on last edited by
              #6

              Ryan Binns wrote: This involved manually editing the password file to change the default shell for root. Things you learn as a Unix sys admin... A: Don't change root's shell! B: Don't log in as root unless you're installing the OS or in a single user/recovery mode! If you use root too much, things like this happen. And, it's fun for nobody if hundreds or thousands of users are affected by it. :) Jeremy Falcon

              1 Reply Last reply
              0
              • R Ryan Binns

                One of my coworkers was doing some admin work on a Solaris box yesterday. This involved manually editing the password file to change the default shell for root. Unfortunately, he changed the shell to a path that was non-existant. Of course, after that, every time he logged in as root, he gets logged off immediately because the shell doesn't exist. We could log in as other users, but couldn't edit the password file because it's writable by root only. Normally, this would require a clean installation, but in this case we were lucky (??). One of the other workers had a setuid script that executed a shell as root, and we could change the shell back. This script saved us this time, but has since been deleted for obvious reasons :~ :doh:!!

                Ryan

                "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

                N Offline
                N Offline
                Nish Nishant
                wrote on last edited by
                #7

                Ryan Binns wrote: One of the other workers had a setuid script that executed a shell as root Hmmm, very suspicious character indeed! Dunno what else he might have done! :suss: Nish


                Extending MFC Applications with the .NET Framework [NW] (coming soon...) Summer Love and Some more Cricket [NW] (My first novel) Shog's review of SLASMC [NW] This post was made from Trivandrum city, India on a 0.0001 KB/s net connection

                R 1 Reply Last reply
                0
                • R Ryan Binns

                  One of my coworkers was doing some admin work on a Solaris box yesterday. This involved manually editing the password file to change the default shell for root. Unfortunately, he changed the shell to a path that was non-existant. Of course, after that, every time he logged in as root, he gets logged off immediately because the shell doesn't exist. We could log in as other users, but couldn't edit the password file because it's writable by root only. Normally, this would require a clean installation, but in this case we were lucky (??). One of the other workers had a setuid script that executed a shell as root, and we could change the shell back. This script saved us this time, but has since been deleted for obvious reasons :~ :doh:!!

                  Ryan

                  "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

                  A Offline
                  A Offline
                  antbates
                  wrote on last edited by
                  #8

                  Ryan Binns wrote: Solaris I'm not familiar with Solaris, but it strikes me as being a rather glaring fault if it will let you change the root to a non-existant path. Shouldn't it give you a warning or something?

                  B 1 Reply Last reply
                  0
                  • A antbates

                    Ryan Binns wrote: Solaris I'm not familiar with Solaris, but it strikes me as being a rather glaring fault if it will let you change the root to a non-existant path. Shouldn't it give you a warning or something?

                    B Offline
                    B Offline
                    Brian Delahunty
                    wrote on last edited by
                    #9

                    It's *nix based.... it doesn't do anything like a "warning". The concept is foreign to it's very being. Regards, Brian Dela :-) http://www.briandela.com[^] IE 6 required.
                    MFC.NET Application Wizard[^] Mix .NET and MFC easily.

                    1 Reply Last reply
                    0
                    • R Ryan Binns

                      One of my coworkers was doing some admin work on a Solaris box yesterday. This involved manually editing the password file to change the default shell for root. Unfortunately, he changed the shell to a path that was non-existant. Of course, after that, every time he logged in as root, he gets logged off immediately because the shell doesn't exist. We could log in as other users, but couldn't edit the password file because it's writable by root only. Normally, this would require a clean installation, but in this case we were lucky (??). One of the other workers had a setuid script that executed a shell as root, and we could change the shell back. This script saved us this time, but has since been deleted for obvious reasons :~ :doh:!!

                      Ryan

                      "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

                      S Offline
                      S Offline
                      Shog9 0
                      wrote on last edited by
                      #10

                      No su ?

                      I think it's cool that Shog's coding johnson is longer than everyone elses -- JoeSox 10/8/03

                      R 1 Reply Last reply
                      0
                      • N Nish Nishant

                        Ryan Binns wrote: One of the other workers had a setuid script that executed a shell as root Hmmm, very suspicious character indeed! Dunno what else he might have done! :suss: Nish


                        Extending MFC Applications with the .NET Framework [NW] (coming soon...) Summer Love and Some more Cricket [NW] (My first novel) Shog's review of SLASMC [NW] This post was made from Trivandrum city, India on a 0.0001 KB/s net connection

                        R Offline
                        R Offline
                        Ryan Binns
                        wrote on last edited by
                        #11

                        He's the sysadmin. There is a reason he wasn't the one doing the changes - why it had to be one of the testing team rather than the admin team, but I can't say what it is ;)

                        Ryan

                        "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

                        1 Reply Last reply
                        0
                        • S Shog9 0

                          No su ?

                          I think it's cool that Shog's coding johnson is longer than everyone elses -- JoeSox 10/8/03

                          R Offline
                          R Offline
                          Ryan Binns
                          wrote on last edited by
                          #12

                          su starts up the user's shell, so no-go there either.

                          Ryan

                          "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

                          1 Reply Last reply
                          0
                          • R Ryan Binns

                            One of my coworkers was doing some admin work on a Solaris box yesterday. This involved manually editing the password file to change the default shell for root. Unfortunately, he changed the shell to a path that was non-existant. Of course, after that, every time he logged in as root, he gets logged off immediately because the shell doesn't exist. We could log in as other users, but couldn't edit the password file because it's writable by root only. Normally, this would require a clean installation, but in this case we were lucky (??). One of the other workers had a setuid script that executed a shell as root, and we could change the shell back. This script saved us this time, but has since been deleted for obvious reasons :~ :doh:!!

                            Ryan

                            "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

                            B Offline
                            B Offline
                            Brad Jennings
                            wrote on last edited by
                            #13

                            Couldn't somebody have logged in as a regular user and then used the su command to get root access?:confused: <edit>Looks like Shog already asked this.:-O</edit> Brad Jennings I like pancakes!

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups