On Sun, 2013-10-06 at 10:15 +0400, Andrey Borzenkov wrote:
В Sat, 05 Oct 2013 18:52:26 +0200 lynn <lynn@steve-ss.com> пишет:
On Sat, 2013-10-05 at 17:37 +0200, Sebastian wrote:
On 10/05/2013 04:38 PM, lynn wrote:
Hi 13.1 beta 1
When trying to get Kerberos tickets, the directory does not exist e.g.
as root: kinit Administrator kinit: Credential cache directory /run/user/0/krb5cc does not exist while getting default ccache
Please explain at which case you are doing it without being logged in.
If I now create the directory: /run/user/0
/run/user/$UID is created by systemd when a user logs on via systemd. so if you use su or sudo it won't be created. therefor this is a bug in kinit.
--
Hi The problem is that this works fine in 12.3, where the cache is produced in /tmp during the mounting of Kerberised cifs shares. As root is never going to be logged in when we need to mount the shares,
Well, that's rather exaggerated. Please explain what you are doing in the whole. Otherwise you get the same result as in story about elephant and blind men ...
how can we work around this issue which has become apparent in 13.1 beta?
This depends on what you are doing. As example, you can use "kinit -c /path/to/cccache".
IOW, /tmp is _always_ available whereas /run/user/0 isn't.
Not necessarily. /tmp may also be pre-service private directory.
Hi The users are windows domain users who need their home directories and the other shares automounted from the file server via kerberised cifs using sssd. The kerberos cache must be available for the mount to succeed, otherwise cifs.upcall fails with 'unable to initialise cache'. systemd creates the /run/user/$UID directory upon login, so it will not be present on a client machine as root will not have logged in; we need that directory to be present _before_ the user hits the file server. I gave kinit as an example because I didn't think anyone would understand the use case, so thanks for asking. It seems a real pain to have to use systemd-tmpfiles now in 13.1, when /tmp has served perfectly well to store the root cache in al previous openSUSE versions. My workaround for the moment is to put the following in /etc/init.d/boot.local: mkdir /run/user/0 && chmod 0700 /run/user/0 I'm sure that there is something simple I've overlooked. Thanks for your interest. L x -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org