System account login

Hello! I am new to this! How do I login to the ‘system’ account?

3 个赞

I don’t think that’s possible. What are you trying to accomplish after you log in as system? There might be an alternative method.

3 个赞

I just want to change some of the settings.

2 个赞

@downey Also is there a way to create an account manually without an email?

2 个赞

Almost any setting can be changed by your own account through the web interface, as long as your account has ‘admin’ rights.

AFAIK, they only way to do so, is you’d need to go through the account creation process and use any email address. Again as an admin account for the site, you can go pull up the user in the admin tools and manually override their email verification (for example in the case you used a fake email address).

Others may know more… :slight_smile:

3 个赞

I see. I’ll try it out!

1 个赞

You can’t login as system.

Admins do that not system.

2 个赞

You can’t. You really need to get mail working or you won’t have a forum. This might help you, though: Create Admin Account from Console.

3 个赞

@pfaffman Is there a way to stage a user? Bit confused by what that means/

2 个赞

As others have replied here, it is not possible to login as the system user. The system user is a special account that is automatically created by Discourse. It is used for performing some automated functions on the site. It is also used as the API user if you make API requests with the All Users API key.

If the site that you are asking about is on our hosting, you do not have access to the Rails console, so the guide for creating accounts from the Rails console will not apply to you.

Have a look at this topic What is a staged user?

If you can give us specific details about what you are trying to accomplish, we will try to help.

4 个赞

我有一个案例,可能需要以“system”身份登录

所以……我犯了一个错误,将一个类别移到了另一个类别(创建了一个子类别)。我保存了子类别,但没有添加任何用户到权限中……所以即使作为管理员,我也无法访问它。当我尝试时,我收到错误 Oops! That page doesn’t exist or is private.

我希望我能以 system 身份登录,重新添加权限,以便管理员可以访问该子类别。

更新

我能够使用 /safe-mode 来修复这个问题 :slight_smile:

1 个赞

很高兴安全模式能帮助你修复问题 :+1:

仅供参考,在权限中保存一个没有特定组的类别,应该会默认将其设置为仅限员工访问/查看。如果不是这种情况,或者有插件或主题组件以某种方式阻止了这种情况,如果你能分享详细信息,那就太好了。:crossed_fingers:

1 个赞

我也是!

我本来可以,但我现在无法重现这个问题,所以它将成为一个谜。

我能提供的最佳解释是……

最初,我有一个类别 #1,里面有一个子类别 #1。

  • 两者都有所有人读/写的权限。

在子类别 #1 的设置中,我将父级更改为类别 #2。

  • 类别 #2 对自定义组具有读权限,对管理员具有读/写权限。
  • 子类别 #1 在权限下没有人。

当我尝试保存更改时,我收到一条错误消息,提示在至少添加一个用户权限之前我无法保存。所以,我没有添加任何内容,而是回到了主页,进入了类别 #2,但我看不到子类别 #1。

我也回到了类别 #1,但我找不到子类别 #1。如果我无法保存更改,我本以为它应该在那里。

然后我使用搜索功能查找子类别 #1 中的一个主题。我能够看到该主题。但是当我尝试进入子类别 #1 查看其他主题时,我收到了 404 错误。

当我使用安全模式时,我能够找到子类别,它仍然在类别 #1 中,就像最初一样。

希望这能有所帮助。

3 个赞