I am trying to download skype , but can’t find the one i want in yay (there is non that i think works better than the one posted on (https://www.tecmint.com/install-skype-in-arch-linux/), my opinion only, because those posted in yay are of funny names (such purple skype web and skypeweb stuff).
Hence i followed the steps on techmint.
I think i got stuck at step 3:
$ sudo chown -R tecmint:users skypeforlinux-stable-bin
The folder called “skypeforlinux-stable-bin” has indeed being created under /home.
So i entered this cmd, [enos-andrew@enos-andrew-pc ~]$ sudo chown :enos-andrew skypeforlinux-stable-bin
*** I have read the wiki about chown article, but not sure how to enter the group name: and :user name .
If i want to change the ownership of skypeforlinux-stable-bin folder, i should be at a level “outside” of that folder, right ?
so i manage to execute this command without error…
I just changed the folder to belong to user “enos-andrew”, i don’t have to change the ownership of the folder to a particular group, just a particular user is good enough to use it right ?
But then, i have got error with $makepkg
[enos-andrew@enos-andrew-pc skypeforlinux-stable-bin]$ makepkg -si
==> ERROR: You do not have write permission for the directory $BUILDDIR (/home/enos-andrew/skypeforlinux-stable-bin).
Aborting...
You don’t really need it in this case but if you want to do it manually you need to use chown -R so you change ownership of the things inside the directory and not just the directory itself.
So , the first enos-andrew: is my user name.
the 2nd :enos-andrew is my group name.
-R recursive (i missed out this during typing)
How do you tell what is my group name ? i was pondering where to find my group name.
can i just type either group name or user name instead of both user and group name ?
I have looked up the web:
This is the way to know the owner and group of a particular folder $ stat ~/skypeforlinux-stable-bin/
@dalto
Why is it that people are having to chown to do these things? I have never had to do this? What is the reason? I don’t understand? What am i doing differently?
I need to do this is because i am cloning the git using “sudo” which is super user acc.
when the git is cloned, it creates a folder under the super user acc. .
hence in order for my normal acc to works on it, i have to change the ownership of the created folder to my normal acc name.
It is what happens when you follow instructions from random websites.
It would be much better to not clone it with sudo rights. Normally you would just clone it into you home directory, cd into it and run makepkg -si. Cloning it as root just makes it more complicated.
That’s why i was asking because I’m sure i have done this before and not had to change it? Normally i just cloned it and moved to the dir and makepkg -si as far as i can remember.
Exactly, just use git clone ... without sudo and you won’t have any issues. This “guide” is wrong.
In fact, as a fairly general rule: don’t use sudo for doing stuff inside your home directory, there is no need for it and it will just mess up your permissions.