LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   I need someone to kick me in the {butt}, please (https://www.linuxquestions.org/questions/general-10/i-need-someone-to-kick-me-in-the-%7Bbutt%7D-please-4175694216/)

kevinbenko 04-24-2021 12:44 PM

I need someone to kick me in the {butt}, please
 
{sigh} I am a dumb {rectum}
I was having trouble auto-mounting some drives when I did a reboot, even to the point of doing a cron "job"

It really frustrated me to no end.... after a few days of this I realized FINALLY that the mount points were NOT {name}, but were /home/{name}

Aaarrrggghhh!!!

TorC 04-24-2021 12:56 PM

KICK!

Emerson 04-24-2021 02:00 PM

1 Attachment(s)
Between kicks received you could let your leg pulled.

hazel 04-24-2021 02:17 PM

That's why I hate automounting. If I mount a drive by hand, I know where it is.

scasey 04-24-2021 02:40 PM

I appreciate kevinbenko sharing the experience...it’s a good reminder of the fact that the damn ‘puters only do what they’re told (or not).... ;)

enorbet 04-25-2021 01:27 PM

/etc/fstab is your friend.

business_kid 04-26-2021 05:12 AM

1 Attachment(s)
A suitable pic attached. But fstab provides root writable only drives. If you go with fstab, you need
  • mount point root:root (e.g. /mnt/drive1)
  • No files except those belonging to root in mount point. (/mnt/drive1/somefile.txt)
  • Subdirs all user:group owned (/mnt/drive1/mydir/)
Then a user can write in the subdirectories.

I have a general purpose backup drive which I habitually mount on /mnt/hd using that system, but I should automate it. If I mount it as luser, the user can create & delete directories. I mean to find where fortune is called and stuff it in local files for one luser, but I go through humours when I feel it shouldn't always be connected.


All times are GMT -5. The time now is 01:45 PM.