Xfce Forum

Sub domains
 

You are not logged in.

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

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

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 24.04

Offline

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

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

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: 129

Re: Immutable attrib

Thanks.

The single quotes got it to working. :-)


Ubuntu-Mate 24.04

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 519.23 KiB (Peak: 520.73 KiB) ]