ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Locating a script that you don't know the name of in Linux

    IT Discussion
    bash linux
    13
    59
    2.3k
    Loading More Posts
    • 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.
    • wirestyle22W
      wirestyle22
      last edited by wirestyle22

      I found them randomly. Now I have to figure out how to update them once I figure out what needs to be taking place. Not strong with scripting but that will need to change.

      DustinB3403D 1 Reply Last reply Reply Quote 0
      • DustinB3403D
        DustinB3403 @wirestyle22
        last edited by

        @wirestyle22 said in Locating a script that you don't know the name of in Linux:

        I found them randomly. Now I have to figure out how to update them once I figure out what needs to be taking place. Not strong with scripting but that will need to change.

        Then post the script, no shame in asking for help.

        wirestyle22W BRRABillB 2 Replies Last reply Reply Quote 0
        • stacksofplatesS
          stacksofplates
          last edited by stacksofplates

          You can always do a find /home -executable -type f for future reference. You could then pipe that to grep for keywords.

          wirestyle22W 1 Reply Last reply Reply Quote 4
          • wirestyle22W
            wirestyle22 @stacksofplates
            last edited by

            @stacksofplates said in Locating a script that you don't know the name of in Linux:

            You can always do a find /home -executable -type f for future reference. You could then pipe that to grep for keywords.

            Didn't know this. Thanks

            1 Reply Last reply Reply Quote 0
            • wirestyle22W
              wirestyle22 @DustinB3403
              last edited by

              @DustinB3403 said in Locating a script that you don't know the name of in Linux:

              @wirestyle22 said in Locating a script that you don't know the name of in Linux:

              I found them randomly. Now I have to figure out how to update them once I figure out what needs to be taking place. Not strong with scripting but that will need to change.

              Then post the script, no shame in asking for help.

              I will when I'm ready to in a new thread. I have some other stuff to take care of now as well.

              1 Reply Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch @wirestyle22
                last edited by

                @wirestyle22 said in Locating a script that you don't know the name of in Linux:

                @DustinB3403 said in Locating a script that you don't know the name of in Linux:

                @Dashrender said in Locating a script that you don't know the name of in Linux:

                @scottalanmiller said in Locating a script that you don't know the name of in Linux:

                @Dashrender said in Locating a script that you don't know the name of in Linux:

                @scottalanmiller said in Locating a script that you don't know the name of in Linux:

                @wirestyle22 said in Locating a script that you don't know the name of in Linux:

                @DustinB3403 said in Locating a script that you don't know the name of in Linux:

                @wirestyle22 said in Locating a script that you don't know the name of in Linux:

                @coliver No unfortunately.

                Are there additional users on this system? If so you might need to login as them and check the history for each of them.

                The problem is that I can't. They are local accounts and there was no transfer of information. No one knows the passwords. Can't reach out to these people as they left on bad terms apparently.

                Very inconvenient

                The admin can just reset passwords or log in as people. There is never a need to know the local user account passwords (and that goes for Windows, too.)

                How do you do into Windows as another user without their password? or resetting their password to something you know?

                net user name password

                Doesn't that just offer you the ability to change the password?

                No that changes the password. But you'd only ever do this if you HAD to login as SAID user. Otherwise you login as the admin and just grant yourself permissions to the user profile and files.

                In this case to access the history you'd need to correct

                No you do not need the user password ever.

                Stop listening to @DustinB3403 as he is just spewing randomly.

                @scottalanmiller already told you what to do.

                DustinB3403D 1 Reply Last reply Reply Quote 0
                • DustinB3403D
                  DustinB3403 @JaredBusch
                  last edited by

                  @JaredBusch said in Locating a script that you don't know the name of in Linux:

                  Stop listening to @DustinB3403 as he is just spewing randomly.

                  I never said he needed the user password, I said he could change the user password if he wanted to login as that user and didn't know what it was.

                  🖕

                  1 Reply Last reply Reply Quote 0
                  • JaredBuschJ
                    JaredBusch @scottalanmiller
                    last edited by

                    @scottalanmiller said in Locating a script that you don't know the name of in Linux:

                    @DustinB3403 said in Locating a script that you don't know the name of in Linux:

                    @wirestyle22 said in Locating a script that you don't know the name of in Linux:

                    @DustinB3403 said in Locating a script that you don't know the name of in Linux:

                    @wirestyle22 said in Locating a script that you don't know the name of in Linux:

                    @coliver No unfortunately.

                    Are there additional users on this system? If so you might need to login as them and check the history for each of them.

                    The problem is that I can't. They are local accounts and there was no transfer of information. No one knows the passwords. Can't reach out to these people as they left on bad terms apparently.

                    Very inconvenient

                    So someone left / was termed?

                    su root
                    sudo passwd [login] [new pass]

                    Even easier...

                    sudo -i su username

                    Right there. There was no reason to do shit randomly.

                    1 Reply Last reply Reply Quote 0
                    • JaredBuschJ
                      JaredBusch @Dashrender
                      last edited by

                      @Dashrender said in Locating a script that you don't know the name of in Linux:

                      @scottalanmiller said in Locating a script that you don't know the name of in Linux:

                      The admin can just reset passwords or log in as people. There is never a need to know the local user account passwords (and that goes for Windows, too.)

                      What goes for Windows too?
                      that you can
                      a) log in as a user without knowing the password
                      b) rest the user's password?

                      obviously we know that we as admins can do 'b'... but I read Scott's comment to say he's talking about 'a'

                      Oh FFS, stop cluttering up threads randomly. The fucking platform has a reply as topic button. Use it.

                      You little side rant about windows was nothing but confusing in a thread about fucking Linux.

                      DashrenderD 1 Reply Last reply Reply Quote 1
                      • IRJI
                        IRJ
                        last edited by

                        This thread really got shit on .....

                        The proper thing to do is to use your privilege account to search for the file. You must know some keywords or something associated with this file.

                        As you are not familar with bash, let me clarify what @stacksofplates said.

                        Run this to search for "app-agent".

                        find /home -executable -type f | grep app-agent

                        wirestyle22W 1 Reply Last reply Reply Quote 2
                        • wirestyle22W
                          wirestyle22 @IRJ
                          last edited by

                          @IRJ At this point it's a miracle I'm not into scatplay

                          DustinB3403D 1 Reply Last reply Reply Quote 0
                          • DustinB3403D
                            DustinB3403 @wirestyle22
                            last edited by

                            @wirestyle22 said in Locating a script that you don't know the name of in Linux:

                            @IRJ At this point it's a miracle I'm not into scatplay

                            What's scat have to do with this?

                            wirestyle22W 1 Reply Last reply Reply Quote 0
                            • wirestyle22W
                              wirestyle22 @DustinB3403
                              last edited by

                              @DustinB3403

                              @IRJ said in Locating a script that you don't know the name of in Linux:

                              This thread really got shit on .....

                              DustinB3403D 1 Reply Last reply Reply Quote 0
                              • DustinB3403D
                                DustinB3403 @wirestyle22
                                last edited by

                                @wirestyle22 said in Locating a script that you don't know the name of in Linux:

                                @DustinB3403

                                @IRJ said in Locating a script that you don't know the name of in Linux:

                                This thread really got shit on .....

                                Oh well, I mean if you're into kinky stuff, you should probably jump on chat roulette.

                                1 Reply Last reply Reply Quote 1
                                • DashrenderD
                                  Dashrender @JaredBusch
                                  last edited by

                                  @JaredBusch said in Locating a script that you don't know the name of in Linux:

                                  @Dashrender said in Locating a script that you don't know the name of in Linux:

                                  @scottalanmiller said in Locating a script that you don't know the name of in Linux:

                                  The admin can just reset passwords or log in as people. There is never a need to know the local user account passwords (and that goes for Windows, too.)

                                  What goes for Windows too?
                                  that you can
                                  a) log in as a user without knowing the password
                                  b) rest the user's password?

                                  obviously we know that we as admins can do 'b'... but I read Scott's comment to say he's talking about 'a'

                                  Oh FFS, stop cluttering up threads randomly. The fucking platform has a reply as topic button. Use it.

                                  You little side rant about windows was nothing but confusing in a thread about fucking Linux.

                                  read more of the fucking thread before blasting - because your rant has already come and gone.
                                  🙂

                                  1 Reply Last reply Reply Quote 0
                                  • BRRABillB
                                    BRRABill @DustinB3403
                                    last edited by

                                    @DustinB3403 said

                                    Then post the script, no shame in asking for help.

                                    No but you might get badgered into oblivion.

                                    DustinB3403D 1 Reply Last reply Reply Quote 1
                                    • DustinB3403D
                                      DustinB3403 @BRRABill
                                      last edited by

                                      @BRRABill said in Locating a script that you don't know the name of in Linux:

                                      @DustinB3403 said

                                      Then post the script, no shame in asking for help.

                                      No but you might get badgered into oblivion.

                                      What's that supposed to mean? Generally speaking, we're here to help not to harass.

                                      1 Reply Last reply Reply Quote 0
                                      • jt1001001J
                                        jt1001001
                                        last edited by

                                        last week I had to find a scrip in our etc folder that contained an IP address. Google Fu found the following:
                                        grep -rnw '/etc/' -e '{put ip address in these quotes}'
                                        If you know what the script contains, maybe a key word you could use this for finding it

                                        1 Reply Last reply Reply Quote 3
                                        • Emad RE
                                          Emad R @wirestyle22
                                          last edited by

                                          @wirestyle22

                                          usually they are stored in /usr/local/bin

                                          that is why you can run them anywhere

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 3 / 3
                                          • First post
                                            Last post