|
From: Tomasz C. <ma...@wp...> - 2006-01-27 12:58:56
|
Miklos Szeredi schrieb: >>Can I somehow mount a fuse filesystem in a way, that all >>files/directories in it created by users will have their uids/gids? > > > One way it to have a separate filesystem for each user's home, and run > the filesystem daemon with the user's privileges. With users changing from time to time, it's not really an option. Besides, it's an embedded system, I would rather use the RAM for something else... > The other way is to > > - use the "default_permissions" mount option to make the kernel > check file permissions I did, but it just doesn't work: root# lzo_fs -s -o allow_other,default_permissions /mnt/3 root# cd /mnt/3 root# mkdir users root# chmod 777 users root# su tch tch$ cd users tch$ copy /bin/bash . tch$ ls -l -rwxr-xr-x 1 root root 749404 Jan 27 13:53 bash* The file is owned by root, although I would like it to be owned by "tch" user. > - set file ownership in your filesystem to fuse_get_context()->uid > and ->gid on file/directory creation This one I didn't understand. Perhaps you mean changing that in LZOlayer_fs sources? BTW, I didn't write the filesystem, I merely used it. -- Tomek |