为什么samba管理员用户无法登录

时间:2019-04-05 08:36:38

标签: samba

  • Samba:4.4.9
  • 中心:7
  • smb.conf相对代码
[share]
        path = /home/lingo/share
        browseable = No
        admin users = pi
        guest ok = Yes
        read only = No
        valid users = hhh
        write list = hhh
  • 访问条件

enter image description here

  • 问题
    1. 为什么pi作为管理员用户无法登录,而hhh可以登录?
  • 我尝试过的操作 将pi添加到有效用户后,它可以工作。
  • 其他 我已经重启了smbd

1 个答案:

答案 0 :(得分:0)

- (IBAction)loginButtonAction:(id)sender { NSURL *authorizationEndpoint = [NSURL URLWithString:@""]; NSURL *tokenEndpoint = [NSURL URLWithString:@""]; OIDServiceConfiguration *configuration = [[OIDServiceConfiguration alloc] initWithAuthorizationEndpoint:authorizationEndpoint tokenEndpoint:tokenEndpoint]; NSString *clientId = @""; NSURL *redirectUri = [NSURL URLWithString:@""]; OIDAuthorizationRequest *builder = [[OIDAuthorizationRequest alloc] initWithConfiguration:configuration clientId:clientId scopes:@[OIDScopeOpenID] redirectURL:redirectUri responseType:OIDResponseTypeCode additionalParameters:nil]; // performs authentication request AppDelegate *appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate; appDelegate.currentAuthorizationFlow = [OIDAuthState authStateByPresentingAuthorizationRequest:builder presentingViewController:self callback:^(OIDAuthState *_Nullable authState, NSError *_Nullable error) { if (authState) { NSLog(@"Got authorization tokens. Access token: %@", authState.lastTokenResponse.accessToken); } else { NSLog(@"Authorization error: %@", [error localizedDescription]); } }]; } 确定哪些人可以连接

valid users确定谁可以root用户身份执行操作

看看这张桌子:

DateTime.ParseExact