From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 31 Dec 2021 02:11:29 +0300 From: Michael Shigorin To: community-en@lists.altlinux.org Message-ID: <20211230231129.GJ13716@imap.altlinux.org> References: <0de88b6a628fd4b0aef8b10d62263216427b5024.camel@vivaldi.net> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0de88b6a628fd4b0aef8b10d62263216427b5024.camel@vivaldi.net> User-Agent: Mutt/1.10.1 (2018-07-13) Subject: [Comm-en] sudo/su/etc setup | Re: Installation Issues X-BeenThere: community-en@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: "ALT Linux users \(in English only\)" List-Id: "ALT Linux users \(in English only\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2021 23:11:30 -0000 Archived-At: List-Archive: On Thu, Dec 30, 2021 at 02:08:39PM -0800, Lyndon wrote: > One time I did get ALT installed ok but I have this one main > issue which always comes up after install. I cannot use the > terminal as I keep getting the message, " This user is not in > the sudoers list. This incident will be reported. sudo(8) gets setup out-of-box in http://getalt.org/en/simply flavour but it's generally considered up to the local root to do that or not (unlike what e.g. Ubuntu does); the commonly recommended way is to use su(8) -- note that ALT still holds to how it was written down back then and our su(8) insists that only the "su -" form resets the environment variables including PATH and HOME to correspond to the target user's settings, "su" keeps those. Some of us still prefer to set su(8)'s permissions so that it's not a SUID binary anymore through: # control su restricted and using sshd to switch to root via their ssh keypair with its passphrase, optionally with ssh-agent and ssh-askpass (e.g., run ssh-keygen -t ed25519 and add the resulting pubkey line to /root/.ssh/authorized_keys and then ssh root@localhost). > So far I have not been able to fix this issue and for now, > at least, I have had to install another operating system, > Arcolinux, in the meantime. > > I would like to be able to reinstall sometime ALT Linux but > need to be able to use the terminal. Any ideas on how to fix > this ? Just use the terminal but set up sudo if you need; through visudo(8), maybe in a form like this: # EDITOR=mcedit visudo See also: * http://altlinux.org/su- (in Russian though) * http://en.altlinux.org/control * man sudo.conf * man visudo > Thanks so much. Otherwise, a great distro !! > Happy New Year to you all. Wish you a Happy New Year and merry Christmas, mate :-) -- š---- WBR, Michael Shigorin / http://altlinux.org šš------ http://opennet.ru / http://anna-news.info