summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,