LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-28-2023, 10:15 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,599

Rep: Reputation: 180Reputation: 180
setfacl --restore Invalid argument


I am running getfacl/setfacl version 2.2.52. Two days ago I ran getfacl outputting to backupACL.txt. Today I tried restoring from that file:
Code:
> setfacl --restore=/backupACL.txt
setfacl: /backupACL.txt: Invalid argument in line 25

group:NT\040AUTHORITY\134system:rwx
Line 25 is shown just above. I asked this question a long time ago (2018) and must have found an answer, but didn't post my solution. Now, I have the same problem again. It seems that the \040 octal space is invalid. Rather crazy since the same version of getfacl created that line in the first place, but there you have it!

How can I get setfacl --restore to work with this file? Replace \040 by spaces? Do that plus put characters following the : in quotes? I hate to experiment if someone knows the answer.
 
Old 02-01-2023, 05:10 AM   #2
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,828

Rep: Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216
The
Quote:
NT\040AUTHORITY\134system
is not a valid username.
Does it stem from Samba/winbind or similar?
Of course you can edit the file and put a valid username there.
 
Old 02-16-2024, 10:38 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,599

Original Poster
Rep: Reputation: 180Reputation: 180
Problem solved. The newer version of [get\set]facl 2.3.1 works without this problem. See https://www.linuxquestions.org/quest...are-4175733940
 
  


Reply

Tags
fail, setfacl



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setfacl invalid argument in line mfoley Linux - General 6 11-05-2018 11:28 PM
[SOLVED] iptables bad argument Bad argument `5060' treschen Linux - Newbie 3 11-10-2012 09:29 AM
[SOLVED] shell scripting: value of argument dissapears depending on argument order akelder Programming 5 03-21-2011 11:27 PM
message sending failed : Error[22 ] invalid argument .....but each and every argument rakeshranjanjha Linux - Software 2 01-07-2008 11:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration