Find out file information using smb client or any alternative command/client
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Find out file information using smb client or any alternative command/client
Hello,
I have a share which is exposed using SMB protocol. The share is hosted on CentOS7.
I have samba package installed on a client VM, which is also CentOS7.
The samba package provides the smbcacls command which helps in obtaining ACL related info for files present on the share.
I have a requirement to explore all possible means & ways to gather any possible info for files present on the share, from the client CentOS 7 machine.
My question is - apart from smbcacls command, is there anything else that I can use to get any possible info about files hosted on the share?
Hello,
I have a share which is exposed using SMB protocol. The share is hosted on CentOS7.
I have samba package installed on a client VM, which is also CentOS7. The samba package provides the smbcacls command which helps in obtaining ACL related info for files present on the share. I have a requirement to explore all possible means & ways to gather any possible info for files present on the share, from the client CentOS 7 machine.
My question is - apart from smbcacls command, is there anything else that I can use to get any possible info about files hosted on the share?
It's a shared disk. You have the same options available to you as you do for a local disk. You can write a script to get the files and parse them out, you can keep track of them in a database, etc., etc., etc. Many options.
Since you have a 'requirement', you must also have some actual GOAL you're trying to achieve, which you haven't posted here. Without knowing what you're trying to actually accomplish, it's hard to make suggestions.
The requirement is to gather as much data as possible, feed it into a machine learning algorithm & identify patterns or anomalies. Right now we are into the data gathering phase.
One point that I missed is that the share won't be mounted on the client CentOS VM. I just have share IP & access credentials.
So using smbcacls command, I can find out who the owner is for the file, ACL info. My intent of posting the question was to figure out if there is any other way to find out any data using other commands/methods that I'm not aware of.
The requirement is to gather as much data as possible, feed it into a machine learning algorithm & identify patterns or anomalies. Right now we are into the data gathering phase.
One point that I missed is that the share won't be mounted on the client CentOS VM. I just have share IP & access credentials. So using smbcacls command, I can find out who the owner is for the file, ACL info. My intent of posting the question was to figure out if there is any other way to find out any data using other commands/methods that I'm not aware of.
...and....
Quote:
Originally Posted by BhushanPathak
I'm open to mounting the shared drive on the client CentOS machine as well, if it helps in providing additional info that can't be fetched remotely.
So what you're essentially asking us to do, is provide free consulting services so you can figure out how to perform the job you were given??
This is YOUR 'requirement'; since you are being paid to perform this task, and there is a 'we' (ostensibly, co-workers), then you and your co-workers need to come up with your own ideas. Mount it, don't mount it, that's immaterial. The problem at hand is very simple; it is a disk and you want to know what's on it. That gives you a narrow list of things you can do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.