You are not logged in.

#1 2017-06-24 18:38:37

tsherrard
Member
Registered: 2017-06-24
Posts: 9

[SOLVED] 077 umask when installing software from AUR - Only root...

Hey folks


So I made the mistake of setting a 077 umask as root, and after installing vmware-workstation from AUR, only root can run it.

Running vmware as non-root returned several permission denied errors. I went through most of the installed files, and noticed that these files mostly had 700 or 600 permissions,
so I manually updated as many as I could. Now when I run vmware as non-root, it exits 1 and no output is given.

I'm lost, I'll probably uninstall it and try again. How can I avoid the same error when attempting the reinstall? Remove the 077 umask? Am I even isnatlling the package correctly?

I git clone it from the AUR and then run makepkg -si as non-privleged, and follow the prompts right?

Last edited by tsherrard (2017-06-24 23:32:22)

Offline

#2 2017-06-24 19:55:55

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: [SOLVED] 077 umask when installing software from AUR - Only root...

sudo umask 022
sudo pacman -R <packagename>

Then delete the git repo, re-clone it and run makepkg again.
There is no "correct" way to intall packages, but you approach is certainly recommended.

Do you understand the meaning and implications of umask? Why did you try those rather restrictive settings itfp?

Offline

#3 2017-06-24 20:10:42

tsherrard
Member
Registered: 2017-06-24
Posts: 9

Re: [SOLVED] 077 umask when installing software from AUR - Only root...

seth wrote:
sudo umask 022
sudo pacman -R <packagename>

Then delete the git repo, re-clone it and run makepkg again.
There is no "correct" way to intall packages, but you approach is certainly recommended.

Do you understand the meaning and implications of umask? Why did you try those rather restrictive settings itfp?


Yes sir, I suppose I was rather hasty with setting 077. I was rather paranoid I suppose.

I'm new to the Arch game, been using Debian for years but decided to take the plunge a couple weeks ago. I believe I may have learned a lesson regarding bad umask settings.

Thanks for the advice brother.

Offline

#4 2017-06-24 23:18:40

tsherrard
Member
Registered: 2017-06-24
Posts: 9

Re: [SOLVED] 077 umask when installing software from AUR - Only root...

Insterestingly enough, I tried installing another AUR package (packettracer) and I'm having the same problems.

My umask is now 0022, yet, all the installed binairys have either 760 or 640 permissions

Offline

#5 2017-06-24 23:31:48

tsherrard
Member
Registered: 2017-06-24
Posts: 9

Re: [SOLVED] 077 umask when installing software from AUR - Only root...

SOLVED:

    Due to restrictive umasks on regular user and root accounds

    Setting umask to 022 on BOTH accounds solves the issue.

Closed

Offline

Board footer

Powered by FluxBB