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

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

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 2 жыл бұрын
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
@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..."
@cravarc
@cravarc 4 жыл бұрын
Thank you. This video was just what I needed... at the perfect pace, and explained so clearly! Subscribed!
@nathanmillar16
@nathanmillar16 3 жыл бұрын
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
@jessicajurado9414
@jessicajurado9414 2 жыл бұрын
Really handy. Thank you!
@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
@linuxinside6188
@linuxinside6188 5 жыл бұрын
Finally This channel Monetized .. 🎉🎉🎉🎉🎈
@dontatme1499
@dontatme1499 5 жыл бұрын
I love this man no homo
@justinm7912
@justinm7912 4 жыл бұрын
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
@kadadajuma6029
@kadadajuma6029 2 жыл бұрын
hi this is what i really needed thank you alot
@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. )
@1minutelinux390
@1minutelinux390 4 жыл бұрын
Thank you , great explanation.
@jovan_script
@jovan_script 2 жыл бұрын
Thanks, man!
@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 3 жыл бұрын
@Heber gonzalez lol
@cyberguide_in
@cyberguide_in 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!
@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
@cherten1
@cherten1 3 жыл бұрын
How to change permissions in batch config. Wanted to install Bacula app but error no permissions for batch config. ???
@juanjoseaguero6539
@juanjoseaguero6539 5 жыл бұрын
Great video !! Please could you explain about File System, processes, services, kernel, run level, etc....it would be very interesting!
@алексейфедоровичкарамазов
@алексейфедоровичкарамазов 4 жыл бұрын
subscribed for this video ❤️
@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
@ithelpers4625
@ithelpers4625 3 жыл бұрын
Thank you :)
@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
@leondennis4659
@leondennis4659 5 жыл бұрын
I wish you could increase the font size or zoom in so I can see better.
@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.
@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...
@markusscott6696
@markusscott6696 2 жыл бұрын
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?
@bodob280
@bodob280 4 жыл бұрын
thank you vary much sir
@poonambharara9068
@poonambharara9068 5 жыл бұрын
Thank you so much, Sir, I really learned a lot and enjoyed this video:)
@CarlyMonster
@CarlyMonster 3 жыл бұрын
THANK YOU!!!
@md.arifurrahman9563
@md.arifurrahman9563 4 жыл бұрын
Thanks a bunch!
@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...????
@queenbyhim3574
@queenbyhim3574 Жыл бұрын
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 Жыл бұрын
Also how can I stop them from changing permissions I have set
@KartonDoBoZ
@KartonDoBoZ 4 жыл бұрын
OMG I am watching this video at Thu 11:10 am :O :O :O :O Lizard Nation
@gabbermensch
@gabbermensch 4 жыл бұрын
Anyone else think this man looks like a handsome version of Ari Shaffir?
@JESUS_IS_KING777
@JESUS_IS_KING777 10 ай бұрын
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
@mahabooblinux
@mahabooblinux 3 жыл бұрын
nice
@AccuphaseMan
@AccuphaseMan 5 жыл бұрын
Did anyone else notice how he says "change"
@aliciavegas5287
@aliciavegas5287 4 жыл бұрын
how can i replace a file to another user
@ninonazghaidze7687
@ninonazghaidze7687 4 жыл бұрын
@PodCashUSA
@PodCashUSA 4 жыл бұрын
3:40 you're welcome
@kamberard6422
@kamberard6422 4 жыл бұрын
Thank you sooo much :)))
@NetworkEngineer
@NetworkEngineer 5 жыл бұрын
X.500 standard active directory
@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
Рет қаралды 544 М.
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 22 МЛН
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 55 МЛН
Человек паук уже не тот
00:32
Miracle
Рет қаралды 3,6 МЛН
Linux - Cron Jobs for Scheduled Tasks (crontab)
21:22
Eli the Computer Guy
Рет қаралды 25 М.
How to use chmod | Manage File Permissions in Linux
15:52
Akamai Developer
Рет қаралды 58 М.
Linux File Permissions in 5 Minutes | MUST Know!
6:03
Travis Media
Рет қаралды 85 М.
Chown, Chmod and Shell Aliases
22:07
DistroTube
Рет қаралды 13 М.
Linux File permissions and Ownership Explained
11:08
Chris Titus Tech
Рет қаралды 57 М.
Linux Crash Course - Managing Groups
23:43
Learn Linux TV
Рет қаралды 47 М.
Linux - Forks, Distributions and Versions
23:37
Eli the Computer Guy
Рет қаралды 27 М.
Linux - SSH for Remote Administration
20:50
Eli the Computer Guy
Рет қаралды 17 М.
File Ownership and Chown - Linux Tutorial 22
5:59
Caleb Curry
Рет қаралды 18 М.
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 22 МЛН