From owner-freebsd-questions@FreeBSD.ORG Sat Apr 11 18:55:37 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5D884AB0 for ; Sat, 11 Apr 2015 18:55:37 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1C5B6938 for ; Sat, 11 Apr 2015 18:55:36 +0000 (UTC) Received: from r56.edvax.de (port-92-195-6-207.dynamic.qsc.de [92.195.6.207]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 4830324CC6; Sat, 11 Apr 2015 20:55:33 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t3BItXhU002353; Sat, 11 Apr 2015 20:55:33 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 11 Apr 2015 20:55:33 +0200 From: Polytropon To: arnab bhowmick Subject: Re: Use "kdesu" in KDE Message-Id: <20150411205533.6b65d4b3.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2015 18:55:37 -0000 Re-including the mailing list, hope that's okay. On Sat, 11 Apr 2015 23:26:21 +0530, arnab bhowmick wrote: > can you explain the topic to me, friend? I currently don't have a KDE environment to check, but if I remember correctly, you simply run kdesu from the KDE "Run..." dialog or (much more comfortable) from a terminal emulator, such as Konsole or the classic xterm. This is a KDE program which will prompt for the root password and then execute the given program (and optional parameters). The "kdesu" program is part of the KDE installation. Example of how to use it from a terminal ('%' means: issued from your regular user account, '#' means: you are root): % kdesu wireshark You'll find more information here: http://www.linfo.org/kdesu.html Similarly, you can use "sudo " and "su". Examples: % cat /etc/master.passwd cat: /etc/master.passwd: Permission denied (to be expected) % sudo cat /etc/master.passwd (output appears) If you want your user to be able to use sudo as a "prefix" without entering the root password, or limit the ability to execute as root to specific programs, it's easy to achieve as explained in "man sudo" and "man sudoers". For example: If all members of the "wheel" group should be able to use "sudo" in "prefix mode" (no password needed), enable the line %wheel ALL=(ALL) NOPASSWD: ALL in /usr/local/etc/sudoers. Have a look as "man visudo" as well, it's a handy utility to configure sudo. The "sudo" program needs to be installed via pkg as explained in the FreeBSD handbook's section about installing software. A similar program is "super", also worth having a look at. In case you need a longer session (the equivalent of "being logged in as root"), you can also use "su": % su - Password: # ... (you are "root" now until you type "exit" or Ctrl-D) # exit % _ (your regular user again) If you wish to preserve your user's settings, use "su -m". See "man su" for details. Note that "su" is part of the OS and is therefore available immediately. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...