Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-10-06 14:15:03

fixit
Member
Registered: 2015-01-19
Posts: 115

Immutable attrib

This works in 18.04 but not in 20.04?

echo password | sudo -S  chattr +i %f

Neither does this.

pkexec chattr +i %f

Last edited by fixit (2022-10-06 14:26:55)


Ubuntu-Mate 22.04

Offline

#2 2022-10-06 16:23:47

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Immutable attrib

fixit wrote:

echo password | sudo -S  chattr +i %f

It works here. Does your password have any special characters? If so, enclose your password in single quotes:

echo 'password' | sudo -S  chattr +i %f

You can also look at ~/.xsession-errors when running the custom action to see if any error messages are generated.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2022-10-06 16:57:23

fixit
Member
Registered: 2015-01-19
Posts: 115

Re: Immutable attrib

Thanks.

The single quotes got it to working. :-)


Ubuntu-Mate 22.04

Offline

Board footer

Powered by FluxBB