From owner-freebsd-questions@FreeBSD.ORG Wed Jun 4 12:41:16 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C8452329 for ; Wed, 4 Jun 2014 12:41:16 +0000 (UTC) Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [IPv6:2a00:1450:400c:c00::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F4082DD9 for ; Wed, 4 Jun 2014 12:41:16 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id x12so8199892wgg.18 for ; Wed, 04 Jun 2014 05:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:date:mime-version:subject:message-id:priority:in-reply-to :references:content-type:content-transfer-encoding :content-description; bh=FpcjszoZR2+VBITMYDM1GczCl+uotqTJLmrxiZzROFM=; b=vPnI9hq/ilQxo0SmPPVBJTBTwiks9OT8mEKozJqcsMeLuvRnhlv7QN1XWH1OooGDnt GSJc32qa0RjH2UxqtR1EYD4lXMgEGsJnI0dtQUcDGAP1Q41876eQ3uUUUGE6ck56516k RyLciMEC1KVjIsiQdE83XkoMyPFtD+dBT0eifLBsdN1Nm+4/1EwuiXfyiN4czpMlxoUd tIl8GqPL+/lppninmGt2EQCSApzDTYbYdnvmu+tmDf15aIuMSnb6fFIq3N5R8xR7gy/c /ImJ1szQaeUmrLItzTFYlQZRnbKQ1ZgkYT/0Q/03WgQ5otLC3NI6LNchahK5KGlq3Nyu 8bGA== X-Received: by 10.180.94.163 with SMTP id dd3mr5018382wib.26.1401885673818; Wed, 04 Jun 2014 05:41:13 -0700 (PDT) Received: from [192.168.16.70] ([217.41.35.220]) by mx.google.com with ESMTPSA id dk10sm30355499wib.1.2014.06.04.05.41.12 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Jun 2014 05:41:13 -0700 (PDT) From: Dave B X-Google-Original-From: "Dave B" To: freebsd-questions@freebsd.org Date: Wed, 04 Jun 2014 13:41:10 +0100 MIME-Version: 1.0 Subject: Re: ssh + su problem Message-ID: <538F13E6.24060.118AF28@g8kbvdave.gmail.com> Priority: normal In-reply-to: <20140604061922.GA2130@La-Habana> References: , , <20140604061922.GA2130@La-Habana> X-mailer: Pegasus Mail for Windows (4.62) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2014 12:41:17 -0000 > El d=EDa Tuesday, June 03, 2014 a las 09:48:01PM +0000, Will Parsons > escribi=F3: > > > >> % su > > >> Password: > > >> su: Sorry > > >> % > > >> > > > > No - doesn't help. (Again, note that there's no problem su-ing > > locally, only after loggin in remotely with ssh.) > > Try: > - become root in anther vt-session locally, > - issue the 'su' command, still without providing a password > - look as root for the PID of the 'su' and attach something like > # truss -o /tmp/su.tr -f -p PID > - provide the password to the 'su' > - check the file /tmp/su.tr what the 'su' complains about > > HIH > > matthias Try... su - root It should then ask for a password, enter the root password, and the prompt= should change to indicate you'r now root. Like this.... (After successful login as a plain user, who has the rights to enable them= to su of course!) Welcome to Dave's FreeBSD! $ su - root ('user mode') Password: (enter root password here, but it is not echoed to the terminal) # /root > (now in 'root' login mode.) NOTE! The 'space,hyphen,space' between the 'su' command, and the 'root' argument. Comments between () are not shown on screen of course. When done doing root stuff... Use Ctrl+D (^D) to exit the root mode back into your user mode, and again = ^D to exit the machine. I do the above from various windows boxes to my FBSD box at home, from within the LAN, or from outside. As I just did, to get that example above= . I use PuTTY on Windows for this sort of thing, as that also gives you some= tunneling abilities if you need to reach into somewhere else on your LAN f= rom outside, such as to run VNC to admin' another machine somewhere for exampl= e. Best Regards. Dave B.