Rick_C137

joined 1 year ago
 

Hi,

I would like to change the owner of a directory on the sdcard /sdcard/aDirectory

I have a terminal installed on my Android 10 (LineageOS 17) com.android.terminal

sudo is not present so I use su and it works.

su
#Terminal was granted Superuser rights

cd /sdcard
chown 10:10 aDirectory
#I don't get any error message.

stat aDirectory
#Uid (0/root)

So the owner stay root no matter what I'm doing, any ideas ?

-12
Mozilla - Devil Incarnate (programming.dev)
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 

Hi everyone,

Is there somewhere a list of all the changes made compared to Firefox ?

edit:

~~Sorry if it's been already asked over here, but it seem that Lemmy do not provide a search within a Community ๐Ÿ˜ฎ~~

no, actually we can, there isn't a shortcut to make such a search. and no ability to limit the search to the titles..

*Wubba Lubba dub-dub*

[โ€“] [email protected] 2 points 2 months ago
setfacl -m m:r aFile
#re set the mask

solve the problem, but the question is: why the F**** this is happening !?

-1
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 

Hi,

I got FileA that have 640 a getfacl FileA give me

# file: FileA
# owner: me
# group: me
user::rw-
user:aUser:r--
group::r-x			#effective:r--
mask::r--
other::---

So it's give me the expected...

but when I do

chmod 600 aFile
getfacl aFile
...
user:aUser:r--		#effective:---
...
mask::---
...

Why suddenly aUser lost his ability to read the file !?!?!

[โ€“] [email protected] 1 points 2 months ago* (last edited 2 months ago) (2 children)

Update, this is only happening when I copy files from a ~SMB share... :'(
Otherwise it's correct...

 

Hi,

I've set for a directory the following

setfacl -dm u:aUser:r aDirectory
#set new files to be readable by aUser

cp ~/Desktop/aFile.txt /xx/xx/xx/aDirectory

getfacl aFile.txt #the copied one
# file: aFile.txt
# owner: me
# group: me
user::rwx
user:aUser:r--
group::r-x
mask::rwx
other::rwx

So indeed we see the aUser got r--

but

stat aFile.txt

return

(0777/-rwxrwxrwx) #!!!!

is that normal !!!!???

Thanks.

[โ€“] [email protected] 5 points 2 months ago (5 children)
[โ€“] [email protected] 1 points 3 months ago

Thank you all !

Indeed setting execute perm on example, sub1, sub2, static

The program/user have now access to the directory.

In order words all the parents directory need at least execute in order to have access in the targeted directory...

Now I gave 751 for static. Meaning than others (here nginx) cannot list the files within. But never the less it works
the static files are appearing when requested (HTTP) but forbidding nginx to list the directory is changing something ? (performance/security)

Thanks

 

Hi,

I've noticed something quite odd, but I don't know if the problem come from Linux itself or nginx..

In order to grant nginx access to a directory let say your static see: https://stackoverflow.com/questions/16808813/nginx-serve-static-file-and-got-403-forbidden

These parent directories "/", "/root", "/root/downloads" should give the execute(x) permission to 'www-data' or 'nobody'. i.e.

but it seem not only the direct parent need to be given XX5 but all the chain

for example

example
โ””โ”€โ”€ sub1
    โ””โ”€โ”€ sub2
        โ””โ”€โ”€ static

it seem you need to set allow others to read and execute 5 all the parents example, sub1, sub2 Why is that !?? I've found it so akward and unsecure ! is there a workaround ?

Thanks.

 

Hi,

For websites I've always restricted username to use Apostrophe ' and " and some times even space . If a website necessitate special character then I prefer to create an additional DB field ~DisplayName.

It's easier to forbid the use of Apostrophe, otherwise you will have to escape also your search query to match what has been recorded in the DB.

On the topic I've this https://security.stackexchange.com/questions/202902/is-single-quote-filtering-nonsense

But if you have better documentation feel free to share :)

Thanks

[โ€“] [email protected] 3 points 8 months ago* (last edited 8 months ago) (2 children)

Thank you all for your quick reactions !!

To summarize if I want to use the PDF built-in signing I will need to convert my OpenPGP into a X.509 cert otherwise I can simply use the OpenPGP file signing

I want to stick to the UNIX Philosophy especially:

Write programs that do one thing and do it well.

So I will use the OpenPGP signing tool :)

Thanks !

 

Hi everyone,

I was wondering if you know a way to use the generated OpenPGP key created trough Thunderbird to sign PDF's ?

(Devuan distro)

Thanks.

 

Hi,

As CSS do not have a color-overlay[^1] filter.

There is some heavy work around:

https://isotropic.co/tool/hex-color-to-css-filter/

that use a combination of CSS filter to target the desired color...

Those online calculators are neat, but I would like an offline version, in case the provided one become inaccessible.

I've downloaded the zip of https://codepen.io/sosuke/pen/Pjoqqp

But it doesn't work locally.. :/

So I would like to know, if someone know one in ๐Ÿ Python ? or how can I make one then ?

Or if someone know another way to have the color-overlay[^1] effect in html\css, I'm all ears !

Thank.

[^1]: To apply like in Photoshop a color on the shape of the image (so not on the parts that have transparency.

 

cross-posted from: https://programming.dev/post/6788379

Hi,

As we might all know ( Early adopter of Lemmy ). Lemmy has been (also) made to give an alternative to the censor kingdom of Reddit ! https://en.wikipedia.org/wiki/Lemmy_(software)

And further more Lemmy is fLOSS ๐Ÿ˜

Great ! but watch out ! we don't want that Lemmy take the same path as Reddit did ! ( hopefully this is limited as it run as a ~Federated model )

Anyways, I believe to avoid censorship and jeopardize users privacy the following should be considered by Instance admins and moderators.

  • Avoid as possible a mandatory email to register Doing so is not reducing spam or whatever you're afraid ! It's limiting users to create account that preserve their anonymity ! If you don't know why anonymity is important I'll suggest you to dig this website to start with https://www.laquadrature.net/en/support/#chiffrement BTW if I couldn't be anonymous, I wouldn't write any post on Lemmy, as I'm not living in a free country !! Look on other instances some admin have found clever way to circumvent bots without the need of an email.

  • Also Lemmy don't require too much of moderation ! as any user can use the block feature in their options so you should not censor content in behave of others !

If the freedom of expression is limited to the ideas that we like, it is not freedom of expression. Noam Chomsky.

Cheers,

1
submitted 11 months ago* (last edited 11 months ago) by [email protected] to c/[email protected]
 

Hi,

Intro about XDA forum (skippable)

I was using a lot xda-developers.com for anything that was related to Android development and phone support. (ROM etc..)

But it became rotten -->

๐Ÿ˜ฑ

๐Ÿ˜ฑ

Current situation to Install another ROM ~OS

As you may know, in order to install another ROM For example to get rid of Google ! ๐Ÿ‘ฟ

You need one that is specifically build for your devices for example: https://wiki.lineageos.org/devices/

This is so inefficient !

You might have heard of Treble that focus on this problem

sadly it's made by google ๐Ÿ‘ฟ and I doubt that they will release all the code. We will see.

If you don't know what is AOSP and this article too

The question : How to install AOSP on a "Supported device"

I've always use only google-free smartphone ! But OMG it's time consuming.

  1. Found a smartphone ( with the spec you want and in your budget )
  2. Check if you can have\import it in your "country"
  3. Check if someone already cook a ROM that support that specific model
  4. or create it by yourself (even more time consuming )
  5. Sometimes: bypass any protection that prevent to install another ROM !
  6. Finally install the ROM's, boot loader etc...

At this time, when it seem that Treble is not there yet... Do you have a quicker path\Solution ?

Thanks

[โ€“] [email protected] -1 points 11 months ago

see my comment in the original post ( https://programming.dev/post/6111023) for more info on the suspected bug.

 

cross-posted from: https://programming.dev/post/6111023

Hi,

I'm trying to post on: [email protected]

but it seem stuck

[โ€“] [email protected] 1 points 1 year ago* (last edited 1 year ago)

and a True Linux ! not one that has been "infected" with parts that do not respect The Four Essential Freedoms of Free Software

So avoid Ubuntu for example..

have a look a this video https://www.fsf.org/blogs/rms/20140407-geneva-tedx-talk-free-software-free-society/

And for a Linux distrio have a look at https://www.devuan.org ๐Ÿ’“

and about windows --> https://itvision.altervista.org/why-windows-10-sucks.html

view more: next โ€บ