FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Thu May 13, 2021 01:44



Post new topic Reply to topic  [ 4 posts ] 
File list with user/group sid 
Author Message

Joined: Sat Dec 01, 2012 13:31
Posts: 2
Post File list with user/group sid
Hello!

I have a simple problem. I need some method to get recursive list of files/dirs with actual (not mapped!!!) user and group SID values.
Something like "ls -Rl" , but for ntfs volume/directory :)
Is any idea how to obtain such list ?


Sat Dec 01, 2012 13:50
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: File list with user/group sid
Hi,

Quote:
I have a simple problem. I need some method to get recursive list of files/dirs with actual (not mapped!!!) user and group SID values.

secaudit does that, though with much more verbosity than you need. You will have to grep from the output :
Code:
secaudit -rvv volume directory

Regards

Jean-Pierre


Sat Dec 01, 2012 14:46
Profile

Joined: Sat Dec 01, 2012 13:31
Posts: 2
Post Re: File list with user/group sid
Thnx!

But..

It is too slow to run secaudit for each file in partition :(
Is there some method quickly get info about files like this:

[ATTRIB] [ownerSID] [CreateTImestemp] [ChangeTimeStamp] [ LasAccessTImeStemp] [File]
?

May be, it is possible to develop some program using ntfs-3g-devel ? Is there some examples to program using this library ?


Sun Feb 10, 2013 14:36
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: File list with user/group sid
Hi,

Quote:
May be, it is possible to develop some program using ntfs-3g-devel ? Is there some examples to program using this library ?

With some reasonable effort you can use the extended attribute mappings of file attributes (system.ntfs_attrib, system.ntfs_acl, and system.ntfs_times, see http://www.tuxera.com/community/ntfs-3g ... ttributes/). Likewise you can access them by dynamically linking to libntfs-3g (see ntfs_xattr_system_getxattr()). In both cases you will have to recurse into directories and format the replies.

As an example, you can use secaudit (and you probably want a simplified version of secaudit).

Regards

Jean-Pierre


Sun Feb 10, 2013 17:48
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.