summaryrefslogtreecommitdiffstats
path: root/bin/draksambashare
diff options
context:
space:
mode:
Diffstat (limited to 'bin/draksambashare')
-rwxr-xr-xbin/draksambashare2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/draksambashare b/bin/draksambashare
index 4eaeede..c4f443f 100755
--- a/bin/draksambashare
+++ b/bin/draksambashare
@@ -293,7 +293,7 @@ sub get_samba_share() {
sub get_samba_user() {
undef @listusers;
- foreach (cat_("/etc/samba/smbpasswd")) {
+ foreach (split '\n', `pdbedit -L -w`) {
my ($user) = m!^([\w-]+):!;
$user and push @listusers, {
user_name => $user,