diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-11-12 19:29:08 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-11-12 19:29:08 +0000 |
commit | d613c91351582dd862d36e9645cdb2cd5b7bd8f8 (patch) | |
tree | 3225887d0edd61ee11df9927684e8b56cc16bcdd /bin | |
parent | 9220b50c85ae02d595ceafde045b4c57a2e700a1 (diff) | |
download | drakx-net-d613c91351582dd862d36e9645cdb2cd5b7bd8f8.tar drakx-net-d613c91351582dd862d36e9645cdb2cd5b7bd8f8.tar.gz drakx-net-d613c91351582dd862d36e9645cdb2cd5b7bd8f8.tar.bz2 drakx-net-d613c91351582dd862d36e9645cdb2cd5b7bd8f8.tar.xz drakx-net-d613c91351582dd862d36e9645cdb2cd5b7bd8f8.zip |
Allow modifying user permissions on existent shares (#55388)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/draksambashare | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/draksambashare b/bin/draksambashare index c4f443f..52684fe 100755 --- a/bin/draksambashare +++ b/bin/draksambashare @@ -797,8 +797,9 @@ sub modify_entry { } foreach ($read_list->get_text, $write_list->get_text, $admin_users->get_text, $valid_users->get_text) { my @users = split(" ", $_); + my @known_users = split("\n", `pdbedit -L -w`); foreach my $user (@users) { - if (!(any { /^$user:/ } cat_("/etc/samba/smbpasswd")) && !/\@/) { + if (!(any { /^$user:/ } @known_users) && !/\@/) { err_dialog(N("Error"), N("Please create this Samba user: %s", $user)) and return; } } |