@flohack
Thanks I will not remove, but I notice after change permission the first time that the file was removed..and not by me(probably an upgrade).
I have restored it from backup and give it the right permissions.
Posts made by pelenze
-
RE: Strange permissions on /etc /usr with uid 1005 and gid 1006
-
RE: Strange permissions on /etc /usr with uid 1005 and gid 1006
There is no need to reinstall, I had restored original perms copying them from the backup files(thanks rsync).
Only one question: on your phones this file exist?/android/cache/legacy_channel
-
RE: Strange permissions on /etc /usr with uid 1005 and gid 1006
Thanks, I mark the thread solved
I'm lucky that i had a backup made with rsync so I had the correct permissions to restore
Just another question: is possible to download somewhere the system.img untouched for Ubuntu touch for Nexus5? -
RE: Strange permissions on /etc /usr with uid 1005 and gid 1006
@keneda said in Strange permissions on /etc /usr with uid 1005 and gid 1006:
@pelenze
Ubuntu Touch is not a regular GNU/L distrib.
It's designed for smartphones and mobile devices (android native one at first), with system files read only and some other particularities.
This for user security reasons (this OS is for any users, like me, not only power linux users).So is better to restore the old perms?
-
Strange permissions on /etc /usr with uid 1005 and gid 1006
I see some bad permission on some system dir
/ instead of root 755 is 1005:1006 with 775 permission
/usr and /etc the same.I have fixed it restoring the correct Linux permission
sudo chmod 755 /etc sudo chmod 755 /etc/init sudo chmod 755 /etc/wifi sudo chmod 644 /etc/wifi/bcmdhd.cal sudo chmod 755 /var sudo chmod 755 /var/lib sudo chmod 755 /var/lib/lxc sudo chmod 755 /var/lib/lxc/android sudo chmod 644 /var/lib/lxc/android/rootfs/cache/legacy_channel sudo chmod 770 /var/lib/lxc/android/rootfs/data/misc/audio sudo chmod 755 /android/cache/legacy_channel sudo chmod 770 /android/data/misc/audio sudo chmod 755 /usr sudo chmod 755 /usr/bin sudo chmod 644 /usr/bin/.system-image-keep sudo chmod 755 /usr/share sudo chmod 755 /usr/share/bluetooth-touch sudo chmod 644 /usr/share/bluetooth-touch/hammerhead sudo chmod 644 /usr/share/system-image/archive-master.tar.xz sudo chmod 644 /usr/share/system-image/archive-master.tar.xz.asc sudo chmod 770 /userdata/android-data/misc/audio sudo chown root:root /etc sudo chown root:root /etc/init sudo chown root:root /etc/wifi sudo chown root:root /etc/wifi/bcmdhd.cal sudo chown root:root /var sudo chown root:root /var/lib sudo chown root:root /var/lib/lxc sudo chown root:root /var/lib/lxc/android sudo chown root:root /var/lib/lxc/android/rootfs/cache/legacy_channel sudo chown root:audio /var/lib/lxc/android/rootfs/data/misc/audio sudo chown root:root /android/cache/legacy_channel sudo chown root:audio /android/data/misc/audio sudo chown root:root /usr sudo chown root:root /usr/bin sudo chown root:root /usr/bin/.system-image-keep sudo chown root:root /usr/share sudo chown root:root /usr/share/bluetooth-touch sudo chown root:root /usr/share/bluetooth-touch/hammerhead sudo chown root:root /usr/share/system-image/archive-master.tar.xz sudo chown root:root /usr/share/system-image/archive-master.tar.xz.asc sudo chown root:audio /userdata/android-data/misc/audio
I see there are a lot of files with gid 1006 under android dir
/var/lib/lxc/android/system.img /var/lib/lxc/android/rootfs/dev/video35 /var/lib/lxc/android/rootfs/dev/video34 /var/lib/lxc/android/rootfs/dev/video33 /var/lib/lxc/android/rootfs/dev/video32 /var/lib/lxc/android/rootfs/dev/jpeg2 /var/lib/lxc/android/rootfs/dev/jpeg1 /var/lib/lxc/android/rootfs/dev/jpeg0 /var/lib/lxc/android/rootfs/dev/video1 /var/lib/lxc/android/rootfs/dev/media1 /var/lib/lxc/android/rootfs/dev/video2 /var/lib/lxc/android/rootfs/dev/media2 /var/lib/lxc/android/rootfs/dev/video0 /var/lib/lxc/android/rootfs/dev/v4l-subdev9 /var/lib/lxc/android/rootfs/dev/v4l-subdev8 /var/lib/lxc/android/rootfs/dev/v4l-subdev7 /var/lib/lxc/android/rootfs/dev/v4l-subdev6 /var/lib/lxc/android/rootfs/dev/v4l-subdev5 /var/lib/lxc/android/rootfs/dev/v4l-subdev4 /var/lib/lxc/android/rootfs/dev/v4l-subdev3 /var/lib/lxc/android/rootfs/dev/v4l-subdev2 /var/lib/lxc/android/rootfs/dev/v4l-subdev1 /var/lib/lxc/android/rootfs/dev/v4l-subdev0 /var/lib/lxc/android/rootfs/dev/v4l-subdev17 /var/lib/lxc/android/rootfs/dev/v4l-subdev16 /var/lib/lxc/android/rootfs/dev/v4l-subdev15 /var/lib/lxc/android/rootfs/dev/v4l-subdev14 /var/lib/lxc/android/rootfs/dev/v4l-subdev13 /var/lib/lxc/android/rootfs/dev/v4l-subdev12 /var/lib/lxc/android/rootfs/dev/v4l-subdev11 /var/lib/lxc/android/rootfs/dev/v4l-subdev10 /var/lib/lxc/android/rootfs/dev/media0 /var/lib/lxc/android/rootfs/data/cam_socket1 /var/lib/lxc/android/rootfs/data/cam_socket2 /var/lib/lxc/android/rootfs/data/fdAlbum /android/data/cam_socket1 /android/data/cam_socket2 /android/data/fdAlbum /userdata/android-data/cam_socket1 /userdata/android-data/cam_socket2 /userdata/android-data/fdAlbum
I prefer to not touch those dirs, I have made a mistake to change the permissions on / and /usr ?