changing attributes of Windows programs from Linux
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
How can I handle the attributes (read, write, hidden ...) of an executable program of Windows (*.exe) from the Linux terminal (command line)?
thanks in advance
Update:
For further clarification, suppose I have a hidden executable in Windows (NTFS). Start with a Linux LiveCD, mount NTFS partition and I want to remove the attributes of the read and hidden executable (.exe). (just an example)
linux command-line files
add a comment |Â
up vote
0
down vote
favorite
How can I handle the attributes (read, write, hidden ...) of an executable program of Windows (*.exe) from the Linux terminal (command line)?
thanks in advance
Update:
For further clarification, suppose I have a hidden executable in Windows (NTFS). Start with a Linux LiveCD, mount NTFS partition and I want to remove the attributes of the read and hidden executable (.exe). (just an example)
linux command-line files
On what filesystem?
â Ignacio Vazquez-Abrams
Jun 13 at 15:39
NTFS / Fat32 / ext4
â user4839775
Jun 13 at 15:47
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
How can I handle the attributes (read, write, hidden ...) of an executable program of Windows (*.exe) from the Linux terminal (command line)?
thanks in advance
Update:
For further clarification, suppose I have a hidden executable in Windows (NTFS). Start with a Linux LiveCD, mount NTFS partition and I want to remove the attributes of the read and hidden executable (.exe). (just an example)
linux command-line files
How can I handle the attributes (read, write, hidden ...) of an executable program of Windows (*.exe) from the Linux terminal (command line)?
thanks in advance
Update:
For further clarification, suppose I have a hidden executable in Windows (NTFS). Start with a Linux LiveCD, mount NTFS partition and I want to remove the attributes of the read and hidden executable (.exe). (just an example)
linux command-line files
edited Jun 13 at 15:50
asked Jun 13 at 15:37
user4839775
9110
9110
On what filesystem?
â Ignacio Vazquez-Abrams
Jun 13 at 15:39
NTFS / Fat32 / ext4
â user4839775
Jun 13 at 15:47
add a comment |Â
On what filesystem?
â Ignacio Vazquez-Abrams
Jun 13 at 15:39
NTFS / Fat32 / ext4
â user4839775
Jun 13 at 15:47
On what filesystem?
â Ignacio Vazquez-Abrams
Jun 13 at 15:39
On what filesystem?
â Ignacio Vazquez-Abrams
Jun 13 at 15:39
NTFS / Fat32 / ext4
â user4839775
Jun 13 at 15:47
NTFS / Fat32 / ext4
â user4839775
Jun 13 at 15:47
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
When the filesystem is mounted with NTFS-3G, the setfattr
command should let you change extended attributes, which are stored in system.ntfs_attrib_be
.
First, query the existing attributes with getfattr
:
$ getfattr -n system.ntfs_attrib_be -e hex file.txt
# file: file.txt
system.ntfs_attrib_be=0x00000022
Then set the new value, removing the one(s) you don't want. According to https://msdn.microsoft.com/en-us/library/cc246322.aspx , ATTR_HIDDEN = 0x2, ATTR_ARCHIVE = 0x20. So to remove only the Hidden bit:
setfattr -n system.ntfs_attrib_be -v 0x00000020 file.txt
There is a wrapper script called ntfs_attr.sh that may simplify this.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
When the filesystem is mounted with NTFS-3G, the setfattr
command should let you change extended attributes, which are stored in system.ntfs_attrib_be
.
First, query the existing attributes with getfattr
:
$ getfattr -n system.ntfs_attrib_be -e hex file.txt
# file: file.txt
system.ntfs_attrib_be=0x00000022
Then set the new value, removing the one(s) you don't want. According to https://msdn.microsoft.com/en-us/library/cc246322.aspx , ATTR_HIDDEN = 0x2, ATTR_ARCHIVE = 0x20. So to remove only the Hidden bit:
setfattr -n system.ntfs_attrib_be -v 0x00000020 file.txt
There is a wrapper script called ntfs_attr.sh that may simplify this.
add a comment |Â
up vote
0
down vote
accepted
When the filesystem is mounted with NTFS-3G, the setfattr
command should let you change extended attributes, which are stored in system.ntfs_attrib_be
.
First, query the existing attributes with getfattr
:
$ getfattr -n system.ntfs_attrib_be -e hex file.txt
# file: file.txt
system.ntfs_attrib_be=0x00000022
Then set the new value, removing the one(s) you don't want. According to https://msdn.microsoft.com/en-us/library/cc246322.aspx , ATTR_HIDDEN = 0x2, ATTR_ARCHIVE = 0x20. So to remove only the Hidden bit:
setfattr -n system.ntfs_attrib_be -v 0x00000020 file.txt
There is a wrapper script called ntfs_attr.sh that may simplify this.
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
When the filesystem is mounted with NTFS-3G, the setfattr
command should let you change extended attributes, which are stored in system.ntfs_attrib_be
.
First, query the existing attributes with getfattr
:
$ getfattr -n system.ntfs_attrib_be -e hex file.txt
# file: file.txt
system.ntfs_attrib_be=0x00000022
Then set the new value, removing the one(s) you don't want. According to https://msdn.microsoft.com/en-us/library/cc246322.aspx , ATTR_HIDDEN = 0x2, ATTR_ARCHIVE = 0x20. So to remove only the Hidden bit:
setfattr -n system.ntfs_attrib_be -v 0x00000020 file.txt
There is a wrapper script called ntfs_attr.sh that may simplify this.
When the filesystem is mounted with NTFS-3G, the setfattr
command should let you change extended attributes, which are stored in system.ntfs_attrib_be
.
First, query the existing attributes with getfattr
:
$ getfattr -n system.ntfs_attrib_be -e hex file.txt
# file: file.txt
system.ntfs_attrib_be=0x00000022
Then set the new value, removing the one(s) you don't want. According to https://msdn.microsoft.com/en-us/library/cc246322.aspx , ATTR_HIDDEN = 0x2, ATTR_ARCHIVE = 0x20. So to remove only the Hidden bit:
setfattr -n system.ntfs_attrib_be -v 0x00000020 file.txt
There is a wrapper script called ntfs_attr.sh that may simplify this.
answered Jun 13 at 17:27
JigglyNaga
2,556623
2,556623
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449581%2fchanging-attributes-of-windows-programs-from-linux%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
On what filesystem?
â Ignacio Vazquez-Abrams
Jun 13 at 15:39
NTFS / Fat32 / ext4
â user4839775
Jun 13 at 15:47