Ooops. I've broken my command line.

Ask a Question related to Debian, Design and Development.

  1. #1

    Default Re: Ooops. I've broken my command line.

    chris harrison wrote:
    >I seem to have broken the cardinal rule of tinkering - I'm not
    >able to back out the change because I'm not sure what I've broken.
    >
    >I've been trying to configure my machine (woody) to authenticate
    >with the PDC on the local win2k network, using samba, winbind and
    >pam.
    >
    >
    Without accounts on the local machine?! Oh, man, if you get this done,
    write up a how-to. Please. Seriously.
    >All's been going reasonably smoothly, I can mount windows shares
    >on to my machine, although the other direction was not so easy.
    >Sometimes I could see the linux machine from the windows net,
    >sometimes not.
    >
    >Then something seriously broke. I would try to login and nothing
    >would happen. After a while I realised (through trawling through
    >/var/log/auth.log) that it wasn't a problem logging in, it was
    >what happened next.
    >
    >Nothing. That's what happens next. It doesn't matter if I login,
    >su, ssh or even try to create a new xterm, each time it gives me
    >a login prompt and authenticates ... but then hangs. Nothing.
    >
    >
    What happens if you try to log in with single-user mode?

    Maybe boot off another system (Knoppix CD, mount the Debian system and
    restore any pam files you may have changed back to their originals.
    >What happens next? I'm a relatively newbie to this level of admin,
    >so any pointers would be gratefully received. Even pointers at
    >the manual I've obviously not been able to find so as to be able
    >to read!
    >
    >
    >Many thanks.
    >
    >
    >
    >
    >
    >
    >


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Kent West Guest

  2. Similar Questions and Discussions

    1. How do I get to the command line?
      I just loaded UBUNTU on a machine, and I need to load an NVIDIA driver. The instructions tell me to type "sh NVIDIA...", but I cannot find a way...
    2. Smooth line art broken?
      Just upgraded to Acrobat 6 and noticed my manuals are displaying graphics horribly. Then I remembered I needed to turn on "smooth line art". Was I...
    3. command line or not???
      Hello, What's the best way to check whether script is run from command line or by web server? -- Greets adeon
    4. RUN/execute a Command-Line command from an ASP page
      Hi, I need to RUN/execute a Command-Line command from an ASP page. This is the command: sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2...
    5. RUN/execute a Command-Line command from an ASP page.
      Hi, I need to RUN/execute a Command-Line command from an ASP page. This is the command: sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2...
  3. #2

    Default Re: Ooops. I've broken my command line.

    Mark Roach wrote:
    >On Tue, 2003-08-05 at 12:01, Kent West wrote:
    >
    >
    >>chris harrison wrote:
    >>
    >>
    >[...]
    >
    >
    >>>I've been trying to configure my machine (woody) to authenticate
    >>>with the PDC on the local win2k network, using samba, winbind and
    >>>pam.
    >>>
    >>>
    >>>
    >>>
    >>Without accounts on the local machine?! Oh, man, if you get this done,
    >>write up a how-to. Please. Seriously.
    >>
    >>
    >
    >It's really not that unusual a thing since winbind came out, there is
    >already plenty of good documentation, like here for starters
    >[url]http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection.html#WINBIND[/url]
    >
    >and especially in the winbindd man page
    >
    >winbind provides both nss and pam functionality so you can make any
    >service that uses pam use windows domain authentication I frequently
    >"ssh -l domain\\username linuxserver"
    >
    >-Mark
    >
    >
    >
    >
    For the past couple of years, each year I spend a week or so at the
    beginning of the university school year trying to get this figured out.
    Last year I got close, but I could never get the students' home
    directories to mount. I tinkered and tinkered and finally had PAM so
    confused that nothing worked.

    A lot of the problem is that the documents you mention above are now out
    of date. For example, the command "smbpasswd -j DOMAIN -r PDC -U
    Administrator" results in:

    See 'net join' for this functionality

    and last year, I could find none, nada, zilch documentation on this "net
    join" command. I see that now, a year later, there's a man page for
    "net", but it didn't exist last year. I also believe the "winbind uid"
    type entries in smb.conf have now been deprecated; I vaguely remember
    seeing something to that effect on a recent apt-get dist-upgrade to sid
    on one of my boxes.

    So in short, whereas these documents are very good for laying the
    goundwork, I'm a firm believer in reading three or four books on a topic
    before believing that I've started to get a grasp of the material,
    because each author will come at it from a slightly different
    perspective or say things in a slightly different manner, etc, and it's
    the differences that teach the similarities. Using these documents
    you've mentioned, I've never been able to accomplish what I want to do.
    I appreciate you pointing them out to me, but I'm just saying that for
    this dumb guy, they're not enough.

    --
    Kent



    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Kent West Guest

  4. #3

    Default Re: Ooops. I've broken my command line.

    Kent West wrote:
    > Mark Roach wrote:
    >
    >> On Tue, 2003-08-05 at 12:01, Kent West wrote:
    >>
    >>
    >>> chris harrison wrote:
    >>>
    >>
    >> [...]
    >>
    >>
    >>>> I've been trying to configure my machine (woody) to authenticate
    >>>> with the PDC on the local win2k network, using samba, winbind and
    >>>> pam.
    >>>>
    >>>>
    >>>
    >>> Without accounts on the local machine?! Oh, man, if you get this
    >>> done, write up a how-to. Please. Seriously.
    >>>
    >>
    >>
    >> It's really not that unusual a thing since winbind came out, there is
    >> already plenty of good documentation, like here for starters
    >> [url]http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection.html#WINBIND[/url]
    >> <snip>
    >>
    >
    >
    > A lot of the problem is that the documents you mention above are now
    > out of date. For example, the command "smbpasswd -j DOMAIN -r PDC -U
    > Administrator" has been replaced by the "net join" command. I also
    > believe the "winbind uid" type entries in smb.conf have now been
    > deprecated


    Yep.

    westk[@agclub03]:/home/westk> sudo net join member -U westk
    [2003/08/06 09:45:07, 1] param/loadparm.c:lp_do_parameter(3114)
    WARNING: The "winbind uid" option is deprecated
    [2003/08/06 09:45:07, 1] param/loadparm.c:lp_do_parameter(3114)
    WARNING: The "winbind gid" option is deprecated

    And, even so, I still can't get it to work:
    westk[@agclub03]:/home/westk> sudo net join member -U westk
    westk password:
    [2003/08/06 09:45:53, 1] libsmb/clikrb5.c:ads_krb5_mk_req(267)
    krb5_cc_get_principal failed (No credentials cache found)
    ads_join_realm: organizational unit member does not exist
    (dn:ou=member,dc=CAMPUS,dc=ACU,dc=EDU)
    ADS join did not work, trying RPC...
    [2003/08/06 09:45:54, 1] utils/net.c:net_find_server(243)
    no server to connect to

    Unable to find a suitable server
    [2003/08/06 09:45:54, 1] utils/net.c:net_find_server(243)
    no server to connect to

    Unable to find a suitable server


    This may be because we've switched over to ActiveDirectory, and perhaps
    Samba/winbind hasn't yet caught up?

    --
    Kent




    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Kent West Guest

  5. #4

    Default Re: Ooops. I've broken my command line.

    Kent West wrote:
    >
    >
    > And, even so, I still can't get it to work:
    > westk[@agclub03]:/home/westk> sudo net join member -U westk
    > westk password:
    > [2003/08/06 09:45:53, 1] libsmb/clikrb5.c:ads_krb5_mk_req(267)
    > krb5_cc_get_principal failed (No credentials cache found)
    > ads_join_realm: organizational unit member does not exist
    > (dn:ou=member,dc=CAMPUS,dc=ACU,dc=EDU)
    > ADS join did not work, trying RPC...
    > [2003/08/06 09:45:54, 1] utils/net.c:net_find_server(243)
    > no server to connect to
    >
    > Unable to find a suitable server
    > [2003/08/06 09:45:54, 1] utils/net.c:net_find_server(243)
    > no server to connect to
    >
    > Unable to find a suitable server

    I just tried a more simplified command which worked to add the machine
    to the domain.
    > westk[@agclub03]:/home/westk> sudo net join -U westk
    > westk password:
    > [2003/08/06 09:54:28, 1] libsmb/clikrb5.c:ads_krb5_mk_req(267)
    > krb5_cc_get_principal failed (No credentials cache found)
    > Joined 'AGCLUB03' to realm 'CAMPUS.ACU.EDU'


    This allowed me to login with an NT domain account that does not have a
    corresponding local account:
    > agclub03 login: acu+snert
    > Password:
    > Linux agclub03 2.4.21-3-686 #1 Sun Jul 20 16:11:09 EST 2003 i686
    > GNU/Linux
    >
    > The programs included with the Debian GNU/Linux system are free
    > software;
    > the exact distribution terms for each program are described in the
    > individual files in /usr/share/doc/*/copyright.
    >
    > Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    > permitted by applicable law.
    > No directory, logging in with HOME=/
    > ACU+Snert@agclub03:/$

    Whoo-hoo! Now if I can just figure out how to map the home directory in
    the NT domain as the home directory locally.

    --
    Kent








    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Kent West Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139