Hello
I want to block applications .desktop, the domain user usually deletes applications accidentally.
It can be done manually with the terminal Ctrl + Alt + T:
Chttr + i /home/domain/user/desktop/*.desktop
But the PC, is used by "n" users.
Is there any way to do it automatically with an .sh file?
Greetings.
[Solved] The domain user usually deletes applications accidentally in the desktop!
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Topics in this forum are automatically closed 6 months after creation.
[Solved] The domain user usually deletes applications accidentally in the desktop!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: The domain user usually deletes applications accidentally in the desktop!
You can try adding the command to
rc.local
.Code: Select all
sudo nano /etc/rc.local
exit 0
.ctrl-o <enter> to save, ctrl-x to exit, followed by:
Code: Select all
sudo chmod +x /etc/rc.local
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Re: The domain user usually deletes applications accidentally in the desktop!
Hello rene:
It only works when users are created, not when a new one is created when joining the domain.
There is a way to make it dynamic!
It only works when users are created, not when a new one is created when joining the domain.
There is a way to make it dynamic!
Re: The domain user usually deletes applications accidentally in the desktop!
Wasn't clear to me what the question entailed; the above reply would however still seem to to be the "Scripts & Bash" part of it? I take it now that you need some sort of trigger upon joining a domain: believe you may need to repost that part in the networking section. Personally precious little clue about Windows networking (and I do mean "precious").
Re: The domain user usually deletes applications accidentally in the desktop!
Thanks catweazel is the solution!
There will be some way to make it work when you start the session.
There will be some way to make it work when you start the session.
Re: The domain user usually deletes applications accidentally in the desktop!
Extremely misty thread. Only responded since I failed to notice a connection between the question and catweazel's reply -- and still do in fact. Shall however assume that "the solution" will indeed have some connection to "the question" though and thank you for reporting said solution
Re: The domain user usually deletes applications accidentally in the desktop!
Hello:
This I wrote in the rc.local file:
chattr + i /home/domain/*/Desktop/*.desktop
exit 0
This I wrote in the rc.local file:
chattr + i /home/domain/*/Desktop/*.desktop
exit 0
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: The domain user usually deletes applications accidentally in the desktop!
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.