Results 1 to 6 of 6

Thread: sudo not good enough to access /root ?

  1. #1

    Default sudo not good enough to access /root ?

    The /root directory has these permissions:
    Code:
    drwx------   1 root      root   682 Jun 10 12:30 root/
    This is the result of using sudo on /root:

    Code:
    sudo /usr/bin/ls /root/.local/share/backintime/takesnapshot_*.log
    -bash: /usr/bin/ls /root/.local/share/backintime/takesnapshot_*.log: No such file or directory
    I tried adding "--user=root" just to be sure. No joy.
    Aside from changing the permissions of /root, is there a way use "sudo" to access /root?




  2. #2
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,072

    Default AW: sudo not good enough to access /root ?

    1. you use the bash-completion with TAB?
    2. why not using su -l to get root?
    3. is the file avaible there?
    Last edited by Sauerland; 10-Jun-2019 at 13:17.

  3. #3

    Default Re: sudo not good enough to access /root ?

    1. you use the bash-completion with TAB?
    I do not know what you mean. bash-completion is enabled. What is TAB? Acronym? Horizontal tab character?

    2. why not using su -l to get root?
    Code:
    $ su -l root "/usr/bin/ls /root/.local/share/backintime/takesnapshot_*.log"
    Password: 
    -bash: /usr/bin/ls /root/.local/share/backintime/takesnapshot_*.log: No such file or directory
    Same result with "sudo -i" and "sudo --user=root".

    3. is the file available there?
    Yes.
    Code:
    $ su
    Password:
    $ /usr/bin/ls /root/.local/share/backintime/takesnapshot_*.log
    /root/.local/share/backintime/takesnapshot_.log

  4. #4
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,898
    Blog Entries
    3

    Default Re: sudo not good enough to access /root ?

    You are probably using "pam_kwallet". There's a bug report on that. It breaks "sudo" and it may break login to root.

    If you can still use Yast, then uninstall pam_kwallet, and that will fix everything. If you are prompted for a kwallet password, it will be the same as your login password.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  5. #5

    Default Re: sudo not good enough to access /root ?

    You are probably using "pam_kwallet".
    No. pam_kwallet is not installed.

  6. #6
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,898
    Blog Entries
    3

    Default Re: sudo not good enough to access /root ?

    The indications are that a problem with "libgcrypt" is involved, and indirectly affects things via pam_kwallet. But maybe it affects other things.

    Checkout this mailing list thread

    That thread is for Tumbleweed. But it links to a bug report that in turn connects with a bug report on Leap 15.1. They are probably all related.
    Last edited by nrickert; 10-Jun-2019 at 14:52.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •