Solved

samba server acl report

Posted on 2014-02-12
3
316 Views
Last Modified: 2014-02-12
if you configure samba server on an AIX IBM system, is there an easy way to see what "shares" have been created, and which users you have granted access to these shares? i.e. sambshare 1 - groupxyz full permissions, userabc read permissions?
0
Comment
Question by:pma111
  • 2
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39853057
smbstatus
0
 
LVL 3

Author Comment

by:pma111
ID: 39853080
could you share a sample output
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39853120
Sanitized:
Samba version x.x.x
Service      uid      gid      pid     machine
----------------------------------------------
vol1$        sample_user1 anz      6664222   sample_machine1 (111.222.1.51) Tue Feb 11 08:14:03 2014
vol2$        sample_user    anz      1523762   sample_machine06  (111.222.3.113) Mon Feb 10 09:46:07 2014
vol1$        sample_user1 anz      6664222   sample_machine1 (111.222.1.51) Tue Feb 11 08:12:52 2014
vol4$        sample_user    anz      72228214   Machine3 (111.16.50.53) Wed Nov 20 08:55:49 2014
vol1$        sample_user1 anz      6664222   sample_machine1 (111.222.1.51) Wed Feb 12 14:00:29 2014
vol3$        sample_user    anz      266324   sample_machine05  (111.222.3.102) Wed Feb 12 10:01:16 2014
vol6$        sample_user    anz      786630   sample_machine-lb2 (111.222.3.119) Mon Feb 10 09:57:01 2014
vol5$        sample_user    anz      6017111   sample_machine05  (172.222.3.102) Wed Feb 12 09:14:34 2014
vol7$        sample_user    anz      4354196   sample_machine06  (111.222.3.113) Mon Feb 10 09:46:42 2014

Locked files:
Pid    DenyMode   Access      R/W        Oplock           Name
--------------------------------------------------------------
3067972  DENY_ALL   0x2019f     RDWR       EXCLUSIVE+BATCH  /path1/share/autochk/wn_filename/fo_Fotolia_3
6170753_frei000083_jpg.jpg   Wed Feb 12 14:06:45 2014
3067972  DENY_ALL   0x2019f     RDWR       EXCLUSIVE+BATCH  /path1/share/autochk/wn_filename/fo_Fotolia_6
0567855_frei000085_jpg.jpg   Wed Feb 12 14:06:46 2014
3067972  DENY_ALL   0x2019f     RDWR       EXCLUSIVE+BATCH  /path1/share/autochk/wn_filename/fo_Fotolia_6
1234172_frei000086_jpg.jpg   Wed Feb 12 14:06:46 2014
3067972  DENY_ALL   0x2019f     RDWR       EXCLUSIVE+BATCH  /path1/share/autochk/wn_filename/fo_Fotolia_2
5093666_frei000084_jpg.jpg   Wed Feb 12 14:06:46 2014

Open in new window

"smbstatus -S" gives just the shares, "-L" gives just the locked files.
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
nodeip 9 80
how to check for shares on aix 1 81
Python Assistance 7 81
ORA-00972: identifier is too long from Unix but not from Windows in SQLPLUS 17 70
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question