****you do not have the permissions necessary t...

1. Open a terminal
2. Type: sudo gedit /etc/X11/xorg.conf
3. Modify your file
4. Save your file

    1>、进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级

用户模式。
   2>、添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。
   3>、编辑/etc/sudoers文件。也就是输入命令"vim /etc/sudoers",输入"i"进入编辑模式,找到这一

行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),然后保存(就

是先摁一下Esc键,然后输入":wq")退出。

   4>、撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。

Fedora10 安裝完成後x-windows 無法用 root登入決解方法
在/etc/pam.d/gdm中的auth required pam_succeed_if.so user != root quiet 加個註解

如果你是想启动就进入字符界面的话,你要改一下/etc/inittab这个文件,把id:5:initdefault:这行中

的5改成3,保存,从启,就好了。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
If you encounter the error message "is not in the sudoers file. This incident will be reported," it means that the user account you are using does not have the necessary permissions to run commands with sudo (superuser do). Sudo is a command in Unix-like operating systems that allows a user with proper permissions to execute commands as a superuser or another user. To resolve this issue, you can try the following steps: 1. Check if your user account has administrative privileges. If not, contact the system administrator or a user with administrative rights to grant you sudo access. 2. If you have administrative privileges, but the error persists, you can try adding your user account to the sudoers file manually. - Open a terminal and run the command `su -` to switch to the root user. - Enter the root password when prompted. - Open the sudoers file using a text editor. In most cases, it is located at `/etc/sudoers`. - Add the following line to the file, replacing `<username>` with your actual username: ``` <username> ALL=(ALL) ALL ``` - Save the file and exit the text editor. - Try running a command with sudo again to see if the issue is resolved. 3. If you are unable to modify the sudoers file or encounter any issues, it is recommended to seek assistance from a system administrator or someone with expertise in managing system permissions. Remember, modifying system files like the sudoers file can have serious consequences if done incorrectly. Proceed with caution and make sure you understand the implications of your actions or seek professional help if unsure.
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值