Linux - Change Permissions and Ownership for Files and Folders (chmod, chown, members, groups )

  Рет қаралды 54,920

Eli the Computer Guy

Eli the Computer Guy

Күн бұрын

Пікірлер: 57
@michaeldasch9820
@michaeldasch9820 2 жыл бұрын
Man, was stuck on this problem for about 3-4 hours..... found this video and was able to figure it out. Thanks so much for sharing your knowledge with the world. May god bless you
@vedantshinde2277
@vedantshinde2277 3 жыл бұрын
Oh my god, Thank you so much!! I blindly used chmod to "remove the lock icon" without knowing the bts. Finally restored permissions for the user and this video just saved the day for me.
@andonigamezsuarez3210
@andonigamezsuarez3210 3 жыл бұрын
Thank you very much. This is the best tutorial I have ever seen about linux permissions and ownerships. Congratulations to you, cause the video goes directly to the point. With channels like this, this world gets better. You get a new sub, and a thumbs up cause this video. A BRIVE SUMMARY FOR YOU GUYS: Changing Permissions and Ownerships for Files and folders: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Showing the groups and members: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Showing the groups of the current user: groups Showing the groups of other users: groups username Showing members of a group, You'll have to previously install it: sudo apt install members -y members groupname Showing all the existence os groups: cat /etc/group ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Changing ownerships ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Changing owner and group owner: sudo chown user:group filename Changing just the owner: sudo chown username filename Changing just the group owner: sudo chown :group filename Changing folder permisions, be careful, you have to bear in main the files that contains. Changing permisons recursively: sudo chown -R user:gorup filename ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Changing permissions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You have to add to give various permissions: 0 = Denied 1 = Excute 2 = Write 4 = Read Example: sudo chmod user|group|others filename --> sudo chmod 740 filename In case of changing folder permisions, we can do it recursively: sudo chmod -R 740 foldername
@cravarc
@cravarc 4 жыл бұрын
Thank you. This video was just what I needed... at the perfect pace, and explained so clearly! Subscribed!
@Cielcity
@Cielcity 5 жыл бұрын
Thank you so much for these classes! I am the only girl on my class and i am glad that I can look smart as the guys on my class.. 🤗😍 thank you so much
@dropshotking1212
@dropshotking1212 5 жыл бұрын
Thats dope!! When i was in high school i was a jock... i was the only jock that took computer classes and was always made fun of... I hope that you stick it to them guys good!! Remember "LADIES are PIMPS too..."
@nathanmillar16
@nathanmillar16 4 жыл бұрын
Quality. Thank you for explaining this!
@JJPRETORIUS
@JJPRETORIUS 4 жыл бұрын
THANK YOU after hours of searching for a solution yours worked the first time Thanks a mil
@vineeshbc9448
@vineeshbc9448 2 жыл бұрын
Thanks a lot... this ved saved my half day 👌🥳🙏
@shantiswarupmahapatra5000
@shantiswarupmahapatra5000 4 жыл бұрын
Hey man! You are really awesome in your explanations
@justinm7912
@justinm7912 5 жыл бұрын
how do u give different permissions to different types of groups, so instead of working with the group that owns the file, you are changing the permissions of multiple groups that use the file
@ryansgale22
@ryansgale22 3 жыл бұрын
I made an external hard drive in Linux Mint auto mount in the path /media/data how do I change the permissions? When I right click the hard drive and go to the permissions tab I get the message ( The permissions of "data" could not be determined. )
@dontatme1499
@dontatme1499 5 жыл бұрын
I love this man no homo
@victoriadathan2675
@victoriadathan2675 4 жыл бұрын
Why is the execute permission separated by a dash in the second portion of the permissions, that is r-x?? I don't get it.
@victoriadathan2675
@victoriadathan2675 4 жыл бұрын
@Heber gonzalez lol
@jessicajurado9414
@jessicajurado9414 2 жыл бұрын
Really handy. Thank you!
@cherten1
@cherten1 3 жыл бұрын
How to change permissions in batch config. Wanted to install Bacula app but error no permissions for batch config. ???
@1minutelinux390
@1minutelinux390 4 жыл бұрын
Thank you , great explanation.
@Bigmoosemanswiggan
@Bigmoosemanswiggan 3 жыл бұрын
what if you're trying to change the owner of a hard drive? I used the KDE partition editor to wipe a hard drive and made a new partition/partition table. Everything works just fine but I can't write anything in the drive, only read
@kadadajuma6029
@kadadajuma6029 2 жыл бұрын
hi this is what i really needed thank you alot
@user-vn7ce5ig1z
@user-vn7ce5ig1z 5 жыл бұрын
I don't know why _ls_ doesn't have an option to view the permissions numerically (eg 755) instead of only as bitfields. :-|
@GodBreathed77
@GodBreathed77 5 жыл бұрын
- getfacl is a good alternative if you want to see more info. I got in the habit of visualizing the numbers by picturing me doing the action with a finger. Read = 4 (picture myself reading a book with 4 fingers) Write = 2 (I picture myself writing with a pencil with two fingers) Execute = 1 (I'm pointing with one finger to tell someone to do something) Not sure if that helps, but has worked well for me
@dropshotking1212
@dropshotking1212 5 жыл бұрын
Agreed!! That would be very helpful for changing back to defaults...
@jakeames6840
@jakeames6840 4 жыл бұрын
Eli, My USB stick just has read permissions, how do I do w and x? Do I have to do the same on all USB ports? I have Linux Ubuntu. Thanks. I have autocad drawings that the printer cannot open up.
@senthamizhanrajendran1739
@senthamizhanrajendran1739 4 жыл бұрын
I'd mounted a removable usb drive in a folder through fstab. But, I'm not able to change the ownership of the mounted folder. When I tried chown it says "operation not permitted" . can you help me to solve this? I'm using Ubuntu mate running on raspberry Pi 3b
@nomadoflight
@nomadoflight 5 жыл бұрын
Hi Eli, could you please also create a video on "special permissions like setuid, setgid and sticky bit" ? I appreciate your work! Thank you!
@dropshotking1212
@dropshotking1212 5 жыл бұрын
so putting 000 should lock the folder and files if done : chmod -R 000 Documents/ \\\ but it shows a pad lock on the folder and files but i can still click on all of them...????
@leondennis4659
@leondennis4659 5 жыл бұрын
I wish you could increase the font size or zoom in so I can see better.
@алексейфедоровичкарамазов
@алексейфедоровичкарамазов 4 жыл бұрын
subscribed for this video ❤️
@markusscott6696
@markusscott6696 3 жыл бұрын
with command $groups I can see only few groups, but with command $cat /etc/groups a whole bunch of groups. Shouldn't that be the same?
@queenbyhim3574
@queenbyhim3574 2 жыл бұрын
I have files on my employer shared drive, I work from home online and I'm convinced someone is going in and altering files. It's a windows system. How can I stop them from modifying, copying, replacing, and removing files in my folers
@queenbyhim3574
@queenbyhim3574 2 жыл бұрын
Also how can I stop them from changing permissions I have set
@cherten1
@cherten1 3 жыл бұрын
Love this video. I need the video you did prior to this. This video builds on it. Videos aren't number and don't know the name. Can anyone help. Don't know what you dofull time but if it is not teaching you missed your calling. Video precise, volume good (no freaky music) just make it a little big in size. You have a new subscriber
@jovan_script
@jovan_script 3 жыл бұрын
Thanks, man!
@juanjoseaguero6539
@juanjoseaguero6539 5 жыл бұрын
Great video !! Please could you explain about File System, processes, services, kernel, run level, etc....it would be very interesting!
@ithelpers4625
@ithelpers4625 3 жыл бұрын
Thank you :)
@aliciavegas5287
@aliciavegas5287 4 жыл бұрын
how can i replace a file to another user
@md.arifurrahman9563
@md.arifurrahman9563 4 жыл бұрын
Thanks a bunch!
@JESUS_IS_KING777
@JESUS_IS_KING777 Жыл бұрын
Please my termux change gid of _apt 3004 (inet) to 65534 (nogroup) and rewrite my etc/passwd and etc/shadow and my etc/group...please help me
@linuxinside6188
@linuxinside6188 5 жыл бұрын
Finally This channel Monetized .. 🎉🎉🎉🎉🎈
@poonambharara9068
@poonambharara9068 5 жыл бұрын
Thank you so much, Sir, I really learned a lot and enjoyed this video:)
@CarlyMonster
@CarlyMonster 3 жыл бұрын
THANK YOU!!!
@bodob280
@bodob280 4 жыл бұрын
thank you vary much sir
@mahabooblinux
@mahabooblinux 3 жыл бұрын
nice
@KartonDoBoZ
@KartonDoBoZ 4 жыл бұрын
OMG I am watching this video at Thu 11:10 am :O :O :O :O Lizard Nation
@ninonazghaidze7687
@ninonazghaidze7687 5 жыл бұрын
@andonigamezsuarez3210
@andonigamezsuarez3210 3 жыл бұрын
A BRIVE SUMMARY FOR YOU GUYS: Changing Permissions and Ownerships for Files and folders: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Showing the groups and members: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Showing the groups of the current user: groups Showing the groups of other users: groups username Showing members of a group, You'll have to previously install it: sudo apt install members -y members groupname Showing all the existence os groups: cat /etc/group ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Changing ownerships ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Changing owner and group owner: sudo chown user:group filename Changing just the owner: sudo chown username filename Changing just the group owner: sudo chown :group filename Changing folder permisions, be careful, you have to bear in main the files that contains. Changing permisons recursively: sudo chown -R user:gorup filename ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Changing permissions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You have to add to give various permissions: 0 = Denied 1 = Excute 2 = Write 4 = Read Example: sudo chmod user|group|others filename --> sudo chmod 740 filename In case of changing folder permisions, we can do it recursively: sudo chmod -R 740 foldername
@gabbermensch
@gabbermensch 4 жыл бұрын
Anyone else think this man looks like a handsome version of Ari Shaffir?
@NetworkEngineer
@NetworkEngineer 5 жыл бұрын
X.500 standard active directory
@PodCashUSA
@PodCashUSA 4 жыл бұрын
3:40 you're welcome
@kamberard6422
@kamberard6422 4 жыл бұрын
Thank you sooo much :)))
@AccuphaseMan
@AccuphaseMan 5 жыл бұрын
Did anyone else notice how he says "change"
@KenSherman
@KenSherman 3 жыл бұрын
chmod 🆚chown...
@Baucan
@Baucan 4 жыл бұрын
No, Linux sucks, you can not easily copy files around, need permission bla bla bla.. since 8 hours I'm trying to copy ONE file to the File sytem and can not... :-( I'm thinking seriously at this point to go back Windows....
Linux - Tarballs, Archive and Compress Folders (tar)
12:16
Eli the Computer Guy
Рет қаралды 15 М.
Users, Groups and Permissions in Linux
37:00
Eli the Computer Guy
Рет қаралды 545 М.
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
"Идеальное" преступление
0:39
Кик Брейнс
Рет қаралды 1,4 МЛН
🎈🎈🎈😲 #tiktok #shorts
0:28
Byungari 병아리언니
Рет қаралды 4,5 МЛН
Why is Linux So Secure? | File Permissions and Groups
35:48
Joe Collins (EzeeLinux)
Рет қаралды 12 М.
Chown, Chmod and Shell Aliases
22:07
DistroTube
Рет қаралды 14 М.
Linux Crash Course - Understanding File & Directory Permissions
35:48
Learn Linux TV
Рет қаралды 124 М.
Linux - Find Files in Linux (find, whereis)
27:59
Eli the Computer Guy
Рет қаралды 12 М.
Linux - Start, Stop, Restart Services (Systemd, systemctl, service, init.d )
23:15
Linux File System Explained!
5:16
ByteByteGo
Рет қаралды 207 М.
Linux - Cron Jobs for Scheduled Tasks (crontab)
21:22
Eli the Computer Guy
Рет қаралды 26 М.
Setting the Correct Permissions on Linux Mountpoints
14:40
theurbanpenguin
Рет қаралды 10 М.
Linux File Permissions in 5 Minutes | MUST Know!
6:03
Travis Media
Рет қаралды 108 М.
Linux - Vim
18:19
Eli the Computer Guy
Рет қаралды 17 М.