Re: Unlocking (remote/local), was Re: Help with suid (bash)

2022-05-10 Thread tomas
On Tue, May 10, 2022 at 10:08:20PM -0500, David Wright wrote: > On Tue 10 May 2022 at 17:12:25 (-0600), Charles Curley wrote: [...] > IOW, though logging in to root by password is ok at the console, > it's not ok when remote. ➀ I assume you know all that you can set "PermitRootLogin yes" in your

Re: Unlocking (remote/local), was Re: Help with suid (bash)

2022-05-10 Thread David Wright
On Tue 10 May 2022 at 17:12:25 (-0600), Charles Curley wrote: > On Tue, 10 May 2022 11:08:23 -0500 > David Wright wrote: > > > That complicates unlocking partitions remotely because, even if you > > can log in as root, you normally can't log in remotely as root. > > ??? I log in as root over SSH

Re: Installation fails to recognize SSD

2022-05-10 Thread David Christensen
On 5/10/22 17:54, Bruno Schneider wrote: I'm trying to install Debian to a Acer Aspire notebook with SSD. Before doing so, I tried to backup the previous Linux Install using SystemRescue. I booted with a SystemRescue flash drive, but only the USB flash drive was recognized and shown on fdisk list

Re: Unlocking (remote/local), was Re: Help with suid (bash)

2022-05-10 Thread Greg Wooledge
On Tue, May 10, 2022 at 05:12:25PM -0600, Charles Curley wrote: > David Wright wrote: > > I use a special user called unlock, whose home directory is on > > /var/local/, to unlock my /home partitions: > > Unlock? What does "unlock" mean in this context? It looks like a > synonym for "mount". If s

Installation fails to recognize SSD

2022-05-10 Thread Bruno Schneider
I'm trying to install Debian to a Acer Aspire notebook with SSD. Before doing so, I tried to backup the previous Linux Install using SystemRescue. I booted with a SystemRescue flash drive, but only the USB flash drive was recognized and shown on fdisk list. Then I booted with Debian Install on the

Re: Unlocking (remote/local), was Re: Help with suid (bash)

2022-05-10 Thread Charles Curley
On Tue, 10 May 2022 11:08:23 -0500 David Wright wrote: > That complicates unlocking partitions remotely because, even if you > can log in as root, you normally can't log in remotely as root. ??? I log in as root over SSH all the time. > > I use a special user called unlock, whose home director

Re: Copying one drive to a smaller one.

2022-05-10 Thread Michael Stone
On Tue, May 10, 2022 at 07:13:55PM +0200, DdB wrote: Proper entry in NVRAM (Can be read and changed with efibootmgr) I've never seen a BIOS where this is hard--you just browse to the appropriate file in the EFI partition (EFI/debian/grubx64.efi). Using a program from within linux is helpful f

Re: Unlocking (remote/local), was Re: Help with suid (bash)

2022-05-10 Thread David Wright
On Tue 10 May 2022 at 13:02:41 (-0400), Greg Wooledge wrote: > On Tue, May 10, 2022 at 11:08:23AM -0500, David Wright wrote: [> > On Tue 10 May 2022 at 08:21:00 (-0600), Charles Curley wrote:] > > > Why the aversion to doing things as root? Why not just run your scripts > > > as root? This is exa

Re: Copying one drive to a smaller one.

2022-05-10 Thread paulf
On Tue, 10 May 2022 19:13:55 +0200 DdB wrote: > Booting UEFI requires different things: (detailed descriptions on > rodsbook site) > Proper subdir/entry in ESP (could be reused from old disk) > Proper entry in NVRAM (Can be read and changed with efibootmgr) > If i were you, i would prepare for em

Re: Copying one drive to a smaller one.

2022-05-10 Thread DdB
Booting UEFI requires different things: (detailed descriptions on rodsbook site) Proper subdir/entry in ESP (could be reused from old disk) Proper entry in NVRAM (Can be read and changed with efibootmgr) If i were you, i would prepare for emergency rescuing the system in case of havoc. For example

Re: Unlocking (remote/local), was Re: Help with suid (bash)

2022-05-10 Thread Greg Wooledge
On Tue, May 10, 2022 at 11:08:23AM -0500, David Wright wrote: > > On Tue, 10 May 2022 07:50:18 -0400 rhkra...@gmail.com wrote: > > Why the aversion to doing things as root? Why not just run your scripts > > as root? This is exactly the sort of thing that is reserved to root for > > reasons of secur

Re: Help with suid (bash)

2022-05-10 Thread rhkramer
On Tuesday, May 10, 2022 10:21:00 AM Charles Curley wrote: > Why the aversion to doing things as root? Why not just run your scripts > as root? This is exactly the sort of thing that is reserved to root for > reasons of security. I may think about that some more, but it is a general aversion to be

Re: Copying one drive to a smaller one.

2022-05-10 Thread Michael Stone
On Tue, May 10, 2022 at 08:31:12AM -0400, pa...@quillandmouse.com wrote: For all but the boot mechanism, copying files from source to destination via rsync should work. For ext4, files are files. Except when they have ACLs or extended attributes, hard links are messy to rsync, etc. Most of tim

Unlocking (remote/local), was Re: Help with suid (bash)

2022-05-10 Thread David Wright
On Tue 10 May 2022 at 08:21:00 (-0600), Charles Curley wrote: > On Tue, 10 May 2022 07:50:18 -0400 rhkra...@gmail.com wrote: > > > Background: 8 years ago I wrote a set of scripts to help me mount and > > unmount LUKS encrypted partitions as needed and as myself > > () rather than as root. > > W

Re: Help with suid (bash)

2022-05-10 Thread Charles Curley
On Tue, 10 May 2022 07:50:18 -0400 rhkra...@gmail.com wrote: > Background: 8 years ago I wrote a set of scripts to help me mount and > unmount LUKS encrypted partitions as needed and as myself > () rather than as root. Why the aversion to doing things as root? Why not just run your scripts as ro

Followup: Re: Resolved: Re: Help with suid (bash)

2022-05-10 Thread rhkramer
By the way, thanks to all who replied! One followup below. On Tuesday, May 10, 2022 08:20:10 AM rhkra...@gmail.com wrote: > Ok, thanks very much! > > That resolves that -- I do have another way of doing it (the c helper > program), I just don't like it -- I'll probably continue to use that but >

Re: Copying one drive to a smaller one.

2022-05-10 Thread paulf
On Tue, 10 May 2022 07:28:02 +0200 DdB wrote: > Hi, > > Am 09.05.2022 um 20:54 schrieb David Christensen: > > Resizing and moving a Debian instance from a 500 GB drive to a 250 > > GB drive requires a lot of expertise. > > I fully agree. And i am missing some information from the OP: > > Was t

Re: Help with suid (bash)

2022-05-10 Thread tomas
On Tue, May 10, 2022 at 07:58:39AM -0400, Greg Wooledge wrote: > On Tue, May 10, 2022 at 07:50:18AM -0400, rhkra...@gmail.com wrote: > > Aside: even though this is not a Debian specific question, I often use > > debian- > > user as my first resource in asking Linux questions. > > It's Linux-speci

Resolved: Re: Help with suid (bash)

2022-05-10 Thread rhkramer
(Intentionally top posting) Ok, thanks very much! That resolves that -- I do have another way of doing it (the c helper program), I just don't like it -- I'll probably continue to use that but think about alternatives. On Tuesday, May 10, 2022 07:58:39 AM Greg Wooledge wrote: > The Linux ker

Re: Help with suid (bash)

2022-05-10 Thread tomas
On Tue, May 10, 2022 at 07:50:18AM -0400, rhkra...@gmail.com wrote: > Aside: even though this is not a Debian specific question, I often use debian- > user as my first resource in asking Linux questions. > > Background: 8 years ago I wrote a set of scripts to help me mount and unmount > LUKS encr

Re: Help with suid (bash)

2022-05-10 Thread Greg Wooledge
On Tue, May 10, 2022 at 07:50:18AM -0400, rhkra...@gmail.com wrote: > Aside: even though this is not a Debian specific question, I often use debian- > user as my first resource in asking Linux questions. It's Linux-specific, though. > -rwsr-xr-x 1 root 1412 Aug 31 2014 > The Linux kernel doe

Help with suid (bash)

2022-05-10 Thread rhkramer
Aside: even though this is not a Debian specific question, I often use debian- user as my first resource in asking Linux questions. Background: 8 years ago I wrote a set of scripts to help me mount and unmount LUKS encrypted partitions as needed and as myself () rather than as root. Aside: Thi