If my external drive is showing up in /home/user1/.private, would another user not be able to view this? See link for example -----> Example
user1@UB-DT2-SERVER:~$ df -lhT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda1 ext4 912G 3.9G 861G 1% /
udev devtmpfs 3.0G 4.0K 3.0G 1% /dev
tmpfs tmpfs 1.2G 1.4M 1.2G 1% /run
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 3.0G 116K 3.0G 1% /run/shm
/home/user1/.Private
ecryptfs 912G 3.9G 861G 1% /home/user1
/dev/sr1 udf 615M 615M 0 100% /media/WD SmartWare
/dev/sdf1 fuseblk 466G 101M 466G 1% /media/MyPassport2
How can my external drive be mounted for all users to access?
Could it be automounted on boot?
There are two main possible problems:
The user doesn't have Unix access to the
/media/
directory. The easiest way to check this is to just dols -ld
on them and see what the permissions are, or have them log in locally and try it.They have unix access but Samba is blocking it. Easiest way to find out if this is the case is to look in the Samba logs for messages saying so, and then change it through whichever means you've set up Samba. (Editing the config files, a gui, etc.)
For linux permissions:
groupadd SHARE
useradd -g SHARE - username
useradd -g SHARE - otherusername
then on the dir:
chown whateverowneryouwant:SHARE DIR
chmod 764
The above will create a group, then you add your users in. Change the ownership to add the group, then set the files to rwxr-xr--. (You can change the XXX to w/e but the xXx is for group)
For Samba, though i think its linux permissions issue. it should just be: smbpasswd -a USER
They then set the samba password, then add the user on the samba.config