maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   How to create user with limited access? (https://talk.maemo.org/showthread.php?t=74959)

rotoflex 2011-07-15 15:29

How to create user with limited access?
 
I'd like to create on my N900 a new user that's very restricted:
having read-only rights to the /media/mmc1/DCIM/mp3 directory, & being unable to see, go to, or do anything with the rest of the file system.

The purpose is to create a guest login to allow sftp: connection via Rhythmbox on another computer to play music from the N900.

I've seen pages on the Linux "adduser" command, but haven't been able to figure out how to give the user such a narrow scope of rights: read-only in only one directory (and its subdirectories), & nothing else.

skykooler 2011-07-15 15:35

Re: How to create user with limited access?
 
Perhaps add them to a group that only has read-only access to that folder?

NIN101 2011-07-15 20:47

Re: How to create user with limited access?
 
Unfortanly, we do not have a security framework like apparmor on the N900(probably selinux, but nobody cared about it yet afaik). Anyway, you need Access Control Lists (setfacl). There is just one problem: the rootfs is ubifs, and ubifs does not have acl support, which basically prevents/limits you to achieve what you want.

But there should be other/better solutions to stream music from the N900 than using sftp/sshfs or something like that.


All times are GMT. The time now is 09:20.

vBulletin® Version 3.8.8