[Users] password protection

Ralf Mardorf info.mardorf at rocketmail.com
Fri Jan 29 15:59:57 CET 2016


On Fri, 29 Jan 2016 15:20:29 +0100, Michael wrote:
>Ralf,
>
>> Since chuser is just in the group of rocketmouse, chuser only can
>> read, but can't write to rocketmouse's home  
>
>See, thats why it won't work. 
>
>Look, it's for no-geek lusers and kids, and i might be unavailable for
>weeks or months. It can't be complicated and prone to problems that
>they've no chance to understand or solve. In fact, there can't be any
>kind of circumstances or problems at all.

No, that's easy to solve. I showed that you easily can write to a
shared folder after adding write access to the group permission. The
issue is that by default the saved files are read/write for the mail
client account user only and not accessible by the user running the
session. Anyway, I solved this issue for you.

Session of user 'rocketmouse', Sylpheed launched as user 'chuser':

[rocketmouse at archlinux ~]$ sudo mkdir /mnt/u1.fat32
[rocketmouse at archlinux ~]$ sudo mount -t vfat /dev/sdc8 /mnt/u1.fat32 -o rw,umask=0000
[rocketmouse at archlinux ~]$ sudo mkdir /mnt/u1.fat32/shared_test_folder
[rocketmouse at archlinux ~]$ ls -hAld /mnt/u1.fat32
drwxrwxrwx 5 root root 16K Jan 29 15:49 /mnt/u1.fat32
[rocketmouse at archlinux ~]$ ls -hAld /mnt/u1.fat32/shared_test_folder/
drwxrwxrwx 2 root root 16K Jan 29 15:49 /mnt/u1.fat32/shared_test_folder/

I saved something by Sylpheed:

[rocketmouse at archlinux ~]$ ls -hAl /mnt/u1.fat32/shared_test_folder/
total 16K
-rwxrwxrwx 1 root root 3.0K Jan 29 15:50 You_have_been_unsubscribed_from_the_Xfce_mailing_list.eml
[rocketmouse at archlinux ~]$ tail -n1 /mnt/u1.fat32/shared_test_folder/You_have_been_unsubscribed_from_the_Xfce_mailing_list.eml 
Goodbye from Xfce!
[rocketmouse at archlinux ~]$ ps aux | grep sylp | grep -v grep
rocketm+  3086  0.0  0.0  15872  3012 ?        S    07:42   0:00 /bin/sh /usr/local/bin/chuser sylpheed
rocketm+  3088  0.0  0.5 239316 22448 ?        S    07:42   0:06 gksudo -u chuser sylpheed
root      3089  0.0  0.1  72312  5252 ?        Ss   07:42   0:00 /usr/bin/sudo -H -S -p GNOME_SUDO_PASS -u chuser -- sylpheed
chuser    3090  0.0  0.9 676656 36828 ?        Sl   07:42   0:12 sylpheed

So there's no issue anymore :).

Regards,
Ralf



More information about the Users mailing list