Quantcast
Viewing all articles
Browse latest Browse all 4908

Troubleshooting • Re: Backup PC specific SSD to Raspberry PI SSD

Have a read of my guide to Building A Pi Based NAS. What you want if fairly easy to do.

Some assumptions:
  • You're running RPiOS
  • You're using pi as your username.
  • You're using foo as a shared username for others and you have already created the Linux user. You may want to take steps to disable Linux logins for this user.
  • You'll be mounting the drive on /srv/8tb
In brief (coz it's in my guide in depth):
  1. Format the drive to ext4 or another Linux native filesystem. This will not work with NTFS, any other MS filesystem, and most no-native ones either.
  2. Get your drive mounting somewhere under /srv during boot (Using fstab A Beginner's Guide may help)
  3. Create two directories on your drive: /srv/8tb/public and /srv/8tb/private
  4. Set permissions on /srv/8tb/public to 777
  5. Set permissions on /srv/8tb/private to 700 and change its owner and group to pi
  6. Install Samba
  7. Configure it:
    1. Disable guest access
    2. Create two shares: public and private pointing at the relevant directories
    3. Restrict valid users for private to pi
  8. Create your Samba users.
  9. Hand out foo's cerdentials to whoever needs them. Keep yours private.
Anyone who logs in as foo will see both shares but will be denied access to private by smbd. Any attempt to access that directory via a login to your Pi will also be denied due to permissions set above. UNless they have root/sudo rights when logged in but if they do, all bets are off.

Statistics: Posted by thagrol — Wed Feb 28, 2024 6:45 pm



Viewing all articles
Browse latest Browse all 4908

Trending Articles