Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #241417

Re: A .profile puzzle

From Gene Heskett <gheskett@shentel.net>
Newsgroups linux.debian.user
Subject Re: A .profile puzzle
Date 2021-10-17 19:30 +0200
Message-ID <D9i8W-85D-11@gated-at.bofh.it> (permalink)
References <D9h3c-7rV-7@gated-at.bofh.it> <D9hmA-7yt-15@gated-at.bofh.it>
Organization none,nada,zip

Show all headers | View raw


On Sunday 17 October 2021 12:35:01 deloptes wrote:

> Gene Heskett wrote:
> > 1. Before the latest failure I could do all this as me because the
> > mount point for the card is in my home directory, I own it all. And
> > didn't have to be root to do any of it.  This was not fixed by a 2nd
> > reboot.
>
> I guess this problem is not related to the .profile issue you are
> having below.

Agreed.

> Check the permissions on the mount point

done, I still own it.

> and the fstab

its not in fstab, never was. I touched a file in 
home/gene/Downloads/3dp.stf named sdb1 to create a mount I didn't have 
to search thru /media to access.

Up until this 5 second power failure, I could, as me, mount that SD card 
there, and use mc, as me, to overwrite a file on that card, then sync; 
eject sdb1. Led on card adapter goes out, pull the card, take it back to 
the printer and select and print the updated file.  Now I have to be 
root to do any of it except the printer. The card is vfat, which has no 
concept of file ownership.

> and also your  
> group membership.

gene@dddprint:~/AppImages$ cat /etc/group|grep gene
dialout:x:20:gene
cdrom:x:24:gene
sudo:x:27:gene
audio:x:29:pulse,gene
video:x:44:gene
gene:x:1000:

Nothing changed there in months.

> The SD card might also need a fsck.

by whose fsck?

> > 2. and another pesky thing is starting a konsole to do work, needs a
> > $PATH modification that we used to put in ~.profile. But opening a
> > terminal hasn't called a ". .profile" since about jessie.  So thats
> > another PITA.
> >
> > So, what has replaced .profile as the function for such as that in
> > recent releases?
>
> AFAIK bash is not reading profile when you login, but not sure - it
> could be also that it is not a login shell.

XFCe login, I think. I only see it once on that machine. logging in 
remotely with "ssh -Y machine-name" or 'user1000'@machine-name is how I 
generally run things from a comfy chair.

> AFAIK you should open the terminal with "bash --login" to read the
> profile. So try in the terminal "bash --login"

Done, but no change in the $PATH. But it did take two ctl-d's to exit it.

> I have put in my .profile
>
> alias bash='bash --login'
>
> long time ago

Thank you deloptes.

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-17 18:20 +0200
  Re: A .profile puzzle deloptes <emanoil.kotsev@deloptes.org> - 2021-10-17 18:40 +0200
    Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-17 19:30 +0200
      Re: A .profile puzzle "Andrew M.A. Cater" <amacater@einval.com> - 2021-10-17 19:40 +0200
        Re: A .profile puzzle David Wright <deblis@lionunicorn.co.uk> - 2021-10-22 17:00 +0200
    Re: A .profile puzzle Greg Wooledge <greg@wooledge.org> - 2021-10-17 20:10 +0200
      Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-17 20:30 +0200
  Re: A .profile puzzle Dan Ritter <dsr@randomstring.org> - 2021-10-17 19:00 +0200
    Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-17 20:20 +0200
      Re: A .profile puzzle songbird <songbird@anthive.com> - 2021-10-17 21:50 +0200
        Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-17 23:00 +0200
        Re: A .profile puzzle Stefan Monnier <monnier@iro.umontreal.ca> - 2021-10-17 23:20 +0200
          Re: A .profile puzzle David Christensen <dpchrist@holgerdanske.com> - 2021-10-18 02:40 +0200
            Re: A .profile puzzle Douglas McGarrett <dmcgarrett@optonline.net> - 2021-10-18 03:20 +0200
              Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-18 06:00 +0200
          Re: A .profile puzzle songbird <songbird@anthive.com> - 2021-10-18 05:20 +0200
  Re: A .profile puzzle Will Mengarini <seldon@eskimo.com> - 2021-10-18 07:30 +0200
    Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-18 07:50 +0200
      Re: A .profile puzzle Greg Wooledge <greg@wooledge.org> - 2021-10-18 13:20 +0200
        Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-18 15:00 +0200
          Re: A .profile puzzle Greg Wooledge <greg@wooledge.org> - 2021-10-18 15:50 +0200
            Re: A .profile puzzle David Wright <deblis@lionunicorn.co.uk> - 2021-10-18 18:20 +0200
  Re: A .profile puzzle piorunz <piorunz@gmx.com> - 2021-10-24 04:10 +0200
    Re: A .profile puzzle Gene Heskett <gheskett@shentel.net> - 2021-10-24 05:30 +0200

csiph-web