xffm and sudo
edscott wilson garcia
edscott at lunar-linux.org
Sun Nov 9 20:59:20 CET 2003
On Sat, 2003-11-08 at 16:21, Eduard Roccatello wrote:
> On Saturday 08 November 2003 20:23, edscott wilson garcia wrote:
> > I've just enabled xffm to use sudo for sensitive commands (mount,
> > umount, pkg_add, pkg_update, burncd, cdrecord, and dpkg). If sudo needs
> > a password, a dialog will popup for the request.
> >
> > The most useful aspect of xffm with sudo is with fstab navigation, and
> > package management.
> i think this is a useful thing
> i've noticed that using samba xffm doesn't ask a user/password request if
> the user that has been setted in prefs is wrong. can you confirm this
> behaviour?
I cannot confirm it. If I put in a invalid user with the
xfce-mcs-setting, the query fails and the prompt for user/password
requests comes up.
>
> i think a prompt would be useful, doesn't it?
It should be there. There are a list of errors returned by smbclient,
specified in smb/smb_misc.c which provoke the prompt to come up:
char *challenges[]={
"Error opening local file",
"ERRDOS",
"ERRSRV",
"ERRbadpw", /* before samba 2.2.3 */
"NT_STATUS_WRONG_PASSWORD",
"NT_STATUS_ACCESS_DENIED",
"NT_STATUS_ILL_FORMED_PASSWORD",
"NT_STATUS_PASSWORD_RESTRICTION",
"NT_STATUS_NO_SUCH_USER",
"NT_STATUS_LOGON_FAILURE",
"NT_STATUS_ACCOUNT_RESTRICTION",
"NT_STATUS_INVALID_LOGON_HOURS",
"NT_STATUS_INVALID_WORKSTATION",
"NT_STATUS_PASSWORD_EXPIRED",
"NT_STATUS_NETWORK_ACCESS_DENIED",
"NT_STATUS_ACCOUNT_DISABLED",
NULL
};
regards,
Edscott
More information about the Xfce4-dev
mailing list