Encrypted /tmp gets invalid access rights in Ubuntu 16.04.4

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
OS: Ubuntu 16.04.4
uname -a: Linux localhost 4.15.12-x86_64-linode105 #1 SMP Thu Mar 22 02:13:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
cryptsetup version: 1.6.6-5ubuntu2.1
/etc/crypttab line:
ctmp /dev/sdc /dev/urandom tmp
/etc/fstab line:
/dev/mapper/ctmp /tmp ext2 defaults,noatime,nofail 0 0
/usr/lib/tmpfiles.d/tmp.conf line (unchanged)
D /tmp 1777 root root -
Problem: after OS boots up, the permissions for /tmp are set to 755, which breaks a number of services.
If I umount /tmp, permissions for it are 1777, as expected. If I set permissions to mounted /tmp and reboot the system, it's again 755.
Is it possible to set encrypted /tmp to have and retain correct access rights automatically?
16.04 cryptsetup
add a comment |Â
up vote
0
down vote
favorite
OS: Ubuntu 16.04.4
uname -a: Linux localhost 4.15.12-x86_64-linode105 #1 SMP Thu Mar 22 02:13:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
cryptsetup version: 1.6.6-5ubuntu2.1
/etc/crypttab line:
ctmp /dev/sdc /dev/urandom tmp
/etc/fstab line:
/dev/mapper/ctmp /tmp ext2 defaults,noatime,nofail 0 0
/usr/lib/tmpfiles.d/tmp.conf line (unchanged)
D /tmp 1777 root root -
Problem: after OS boots up, the permissions for /tmp are set to 755, which breaks a number of services.
If I umount /tmp, permissions for it are 1777, as expected. If I set permissions to mounted /tmp and reboot the system, it's again 755.
Is it possible to set encrypted /tmp to have and retain correct access rights automatically?
16.04 cryptsetup
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
OS: Ubuntu 16.04.4
uname -a: Linux localhost 4.15.12-x86_64-linode105 #1 SMP Thu Mar 22 02:13:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
cryptsetup version: 1.6.6-5ubuntu2.1
/etc/crypttab line:
ctmp /dev/sdc /dev/urandom tmp
/etc/fstab line:
/dev/mapper/ctmp /tmp ext2 defaults,noatime,nofail 0 0
/usr/lib/tmpfiles.d/tmp.conf line (unchanged)
D /tmp 1777 root root -
Problem: after OS boots up, the permissions for /tmp are set to 755, which breaks a number of services.
If I umount /tmp, permissions for it are 1777, as expected. If I set permissions to mounted /tmp and reboot the system, it's again 755.
Is it possible to set encrypted /tmp to have and retain correct access rights automatically?
16.04 cryptsetup
OS: Ubuntu 16.04.4
uname -a: Linux localhost 4.15.12-x86_64-linode105 #1 SMP Thu Mar 22 02:13:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
cryptsetup version: 1.6.6-5ubuntu2.1
/etc/crypttab line:
ctmp /dev/sdc /dev/urandom tmp
/etc/fstab line:
/dev/mapper/ctmp /tmp ext2 defaults,noatime,nofail 0 0
/usr/lib/tmpfiles.d/tmp.conf line (unchanged)
D /tmp 1777 root root -
Problem: after OS boots up, the permissions for /tmp are set to 755, which breaks a number of services.
If I umount /tmp, permissions for it are 1777, as expected. If I set permissions to mounted /tmp and reboot the system, it's again 755.
Is it possible to set encrypted /tmp to have and retain correct access rights automatically?
16.04 cryptsetup
16.04 cryptsetup
asked Apr 3 at 14:09
Konstantin Boyandin
234
234
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1021635%2fencrypted-tmp-gets-invalid-access-rights-in-ubuntu-16-04-4%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password