maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   [Announce] N9/50 QuickTweak app (for PR1.3 only) - v9.8.8 (https://talk.maemo.org/showthread.php?t=80600)

Ancelad 2013-09-09 11:23

Re: [Announce] N9/50 QuickTweak app (for PR1.3 only) - v9.8.4
 
Quote:

Originally Posted by SteveYoungs (Post 1373098)
Erm, no. That would not let root have access to MyDocs, besides, that directory already has that ownership. The correct thing to do is to execute those shell commands as user. It is probably just a fluke that it works when MyDocs is vfat.

Hmm, I have ext4 FS on MyDocs too... Will test it.

Schturman 2013-09-09 11:28

Re: [Announce] N9/50 QuickTweak app (for PR1.3 only) - v9.8.4
 
MyDocs in normal mode is fat32 and user:users installation of n9qt create some folders in MyDocs without any problem. Try to add user:users to MyDocs like Ancelad suggested you.

Ancelad 2013-09-09 11:40

Re: [Announce] N9/50 QuickTweak app (for PR1.3 only) - v9.8.4
 
Works correct... .launchericon etc. folders were created in MyDocs without problems.

SteveYoungs 2013-09-09 11:41

Re: [Announce] N9/50 QuickTweak app (for PR1.3 only) - v9.8.4
 
Quote:

Originally Posted by Schturman (Post 1373106)
MyDocs in normal mode is fat32 and user:users installation of n9qt create some folders in MyDocs without any problem. Try to add user:users to MyDocs like Ancelad suggested you.

His suggestion is wrong. My /home/user/MyDocs directory is already user:users, it also happens to be ext4. root cannot write to that directory so you have to use aegis-exec -u to temporarily change to user.

Code:

id -u
 => 0

touch ~user/MyDocs/foo
 => touch: /home/user/MyDocs/foo: Permission denied

aegis-exec -u user touch ~user/MyDocs/foo; ls -l ~user/MyDocs/foo
 => -rw-r--r--    1 user    users            0 Sep  9 21:38 /home/user/MyDocs/foo

Do you see now what I'm saying?

Ancelad 2013-09-09 11:46

Re: [Announce] N9/50 QuickTweak app (for PR1.3 only) - v9.8.4
 
Please, tell me, how credentials are depend from your FS-type?

SteveYoungs 2013-09-09 11:49

Re: [Announce] N9/50 QuickTweak app (for PR1.3 only) - v9.8.4
 
Quote:

Originally Posted by Ancelad (Post 1373108)
Works correct... .launchericon etc. folders were created in MyDocs without problems.

Can you please show me two things...

The output from: `mount|grep MyDocs'

And from: `ls -ld ~user/MyDocs'

Mine is:

Code:

mount|grep MyDocs
/dev/mmcblk0p1 on /home/user/MyDocs type ext4 (rw,relatime,barrier=1,data=ordered)

ls -ld ~user/MyDocs
drwxr-xr-x  24 user    users        4096 Sep  9 21:38 /home/user/MyDocs


SteveYoungs 2013-09-09 11:55

Re: [Announce] N9/50 QuickTweak app (for PR1.3 only) - v9.8.4
 
Quote:

Originally Posted by Ancelad (Post 1373110)
Please, tell me, how credentials are depend from your FS-type?

I honestly do not know.

When I am installing things via dpkg or apt-get I'm usually logged into the N9 from my PC via ssh to root. Maybe the credentials are different then, I don't know.

EDIT: Nope. I just tried ssh into device as developer and then devel-su and root still cannot write to ~user/MyDocs. I am still convinced that aegis-exec is the right answer.

Ancelad 2013-09-09 15:42

Re: [Announce] N9/50 QuickTweak app (for PR1.3 only) - v9.8.4
 
1 Attachment(s)
Quote:

Originally Posted by SteveYoungs (Post 1373112)
Can you please show me two things...

The output from: `mount|grep MyDocs'

And from: `ls -ld ~user/MyDocs'

Mine is:

Code:

mount|grep MyDocs
/dev/mmcblk0p1 on /home/user/MyDocs type ext4 (rw,relatime,barrier=1,data=ordered)

ls -ld ~user/MyDocs
drwxr-xr-x  24 user    users        4096 Sep  9 21:38 /home/user/MyDocs


Here is mine. Do you use ext2manager?

SteveYoungs 2013-09-09 22:07

Re: [Announce] N9/50 QuickTweak app (for PR1.3 only) - v9.8.4
 
Quote:

Originally Posted by Ancelad (Post 1373146)
Here is mine. Do you use ext2manager?

No, I don't know what "ext2manager" is. What is it for?

But I see why you don't get the same errors as I do with N9QT, the permissions on your MyDocs directory are messed up... world writable, group is root. That is why root can write to your MyDocs.

In fact, if you were to try the suggestion you gave me... `chown -R user:users MyDocs', you would see the bug I reported with N9QT.

thedead1440 2013-09-10 02:47

Re: [Announce] N9/50 QuickTweak app (for PR1.3 only) - v9.8.4
 
Schturman,
I think SteveYoungs has a point. Since MyDocs is a fat32 partition it has no permissions hence both root and user can access it. However if someone formats it to ext3/4 they are going to face the problem he states due to it being a user partition and like we know root in normal mode is unable to write to /home/user. The same thing would happen to the MyDocs partition.


For future proofing N9QT, I think his suggestion is worth implementing.

Just my 2c...


All times are GMT. The time now is 10:41.

vBulletin® Version 3.8.8