You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by Dmitri Chebotarov <dc...@gmu.edu> on 2012/09/20 15:28:11 UTC

Linux reservation home folder permissions for image owner.

Hi

There is a small issue with home folder permission for image owner on Linux reservations.
Capturing process doesn't delete image owner's home folder when a Linux image is captured (Linux.pm:delete_user() mentioned '# Do not use userdel -r, it will affect HPC user storage for HPC installs'. )
Then when owner makes reservation his/her home folder has incorrect permissions which breaks login (xrdp doesn't work and SSH gives error about accessing home folder). 
The fix is simple - become sudo and run chown on /home/username folder, then logoff/login.

I think it will make sense to execute 'chown $username /home/$username' during reservation process to make sure that current user has full access to home folder.
This problem only affects image owner user. Looks like it only happens when image update involves adding a new users (ie. install a package which adds new user account).

--
Thank you,

Dmitri Chebotarov
Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175
Fax: (703) 993-3404





Re: Linux reservation home folder permissions for image owner.

Posted by Aaron Peeler <fa...@ncsu.edu>.
Agreed.  Could add/append this command to the $useradd_string command string.

-Aaron

On Thu, Sep 20, 2012 at 9:28 AM, Dmitri Chebotarov <dc...@gmu.edu> wrote:
> Hi
>
> There is a small issue with home folder permission for image owner on Linux reservations.
> Capturing process doesn't delete image owner's home folder when a Linux image is captured (Linux.pm:delete_user() mentioned '# Do not use userdel -r, it will affect HPC user storage for HPC installs'. )
> Then when owner makes reservation his/her home folder has incorrect permissions which breaks login (xrdp doesn't work and SSH gives error about accessing home folder).
> The fix is simple - become sudo and run chown on /home/username folder, then logoff/login.
>
> I think it will make sense to execute 'chown $username /home/$username' during reservation process to make sure that current user has full access to home folder.
> This problem only affects image owner user. Looks like it only happens when image update involves adding a new users (ie. install a package which adds new user account).
>
> --
> Thank you,
>
> Dmitri Chebotarov
> Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
> 223 Aquia Building, Ffx, MSN: 1B5
> Phone: (703) 993-6175
> Fax: (703) 993-3404
>
>
>
>



-- 
Aaron Peeler
Program Manager
Virtual Computing Lab
NC State University

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.