Sujet : Re: SAMBA Problems
De : tnp (at) *nospam* invalid.invalid (The Natural Philosopher)
Groupes : comp.os.linux.miscDate : 18. Feb 2025, 10:46:53
Autres entêtes
Organisation : A little, after lunch
Message-ID : <vp1kud$1kr74$4@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 18/02/2025 04:58, c186282 wrote:
Today's need is to mount an external multi-disk
usb drive. Bookworm does NOT seem to automount
those on reboot. DID find a code snippet that
resets the bus, and the external drives mount
at /media/user/xxxx as expected. I'd LIKE to
point SAMBA at those - ez-peazy. However I
could mount the /dev/sdx somewhere else after
boot by direct command, create symlinks or
whatever.
Oh wow ... this is an actual LINUX question 🙂
1. The entity actually accessing shared drives is the samba daemon that is probably running as root, so linux permissions are not the issue.
2. If the USB drive is 'permanent' give it an entry in /etc/fstab. Using partition UUID to uniquely ID it. This will screw up booting it the drive is unplugged - up to a couple of minutes to time out maybe. dont know.
This is an entry for a permanently USB connected SSD drive partition
PARTUUID=778a9e44-03 /backup ext4 defaults,noatime 0 1
Note that the partition ends up mounted exactly where you want it.
Use lsblk -f or blkid to determine UUID or PARTUUID on a mounted drive
3. Its a long time since I used SAMBA but Microsoft even then was doing 'clever shit' that you needed to circumvent to get it to work - even with other microsoft shit. By default sharing was turned off.
So I don't have the definitive answer to the permissions problem - just where not to look, and permanently assigning a USB mounted partition to a fixed point in the file system is trivial.
-- "Fanaticism consists in redoubling your effort when you have forgotten your aim." George Santayana