Active Topics

 


Reply
Thread Tools
Ancelad's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#7771
Originally Posted by SteveYoungs View Post
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's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#7772
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's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#7773
Works correct... .launchericon etc. folders were created in MyDocs without problems.
 

The Following User Says Thank You to Ancelad For This Useful Post:
SteveYoungs's Avatar
Posts: 79 | Thanked: 47 times | Joined on Oct 2011 @ Brisbane, AU
#7774
Originally Posted by Schturman View Post
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's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#7775
Please, tell me, how credentials are depend from your FS-type?
 
SteveYoungs's Avatar
Posts: 79 | Thanked: 47 times | Joined on Oct 2011 @ Brisbane, AU
#7776
Originally Posted by Ancelad View Post
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's Avatar
Posts: 79 | Thanked: 47 times | Joined on Oct 2011 @ Brisbane, AU
#7777
Originally Posted by Ancelad View Post
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.

Last edited by SteveYoungs; 2013-09-09 at 11:58.
 
Ancelad's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#7778
Originally Posted by SteveYoungs View Post
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?
Attached Images
 
 
SteveYoungs's Avatar
Posts: 79 | Thanked: 47 times | Joined on Oct 2011 @ Brisbane, AU
#7779
Originally Posted by Ancelad View Post
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.
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#7780
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...
 
Reply

Tags
hebrew vkb, n9 qtweak, n9 quick tweak, n9 quicktweak, root-ssh


 
Forum Jump


All times are GMT. The time now is 06:48.