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

Поделиться
HTML-код
  • Опубликовано: 30 янв 2025

Комментарии • 57

  • @michaeldasch9820
    @michaeldasch9820 2 года назад +1

    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 года назад +1

    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 лет назад +1

    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 лет назад +1

      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 года назад +2

    Thank you. This video was just what I needed... at the perfect pace, and explained so clearly! Subscribed!

  • @nathanmillar16
    @nathanmillar16 4 года назад +1

    Quality. Thank you for explaining this!

  • @justinm7912
    @justinm7912 5 лет назад +2

    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

  • @JJPRETORIUS
    @JJPRETORIUS 4 года назад

    THANK YOU after hours of searching for a solution yours worked the first time Thanks a mil

  • @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 лет назад +14

    I love this man no homo

  • @vineeshbc9448
    @vineeshbc9448 2 года назад

    Thanks a lot... this ved saved my half day 👌🥳🙏

  • @cherten1
    @cherten1 3 года назад

    How to change permissions in batch config. Wanted to install Bacula app but error no permissions for batch config.
    ???

  • @shantiswarupmahapatra5000
    @shantiswarupmahapatra5000 4 года назад

    Hey man! You are really awesome in your explanations

  • @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

  • @victoriadathan2675
    @victoriadathan2675 4 года назад +1

    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.

  • @jessicajurado9414
    @jessicajurado9414 2 года назад

    Really handy. Thank you!

  • @nomadoflight
    @nomadoflight 5 лет назад +2

    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

  • @leondennis4659
    @leondennis4659 5 лет назад +1

    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.

  • @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

  • @kadadajuma6029
    @kadadajuma6029 2 года назад

    hi this is what i really needed thank you alot

  • @алексейфедоровичкарамазов

    subscribed for this video ❤️

  • @juanjoseaguero6539
    @juanjoseaguero6539 5 лет назад +1

    Great video !! Please could you explain about File System, processes, services, kernel, run level, etc....it would be very interesting!

  • @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...????

  • @jovan_script
    @jovan_script 3 года назад

    Thanks, man!

  • @1minutelinux390
    @1minutelinux390 4 года назад

    Thank you , great explanation.

  • @user-vn7ce5ig1z
    @user-vn7ce5ig1z 5 лет назад +1

    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 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

  • @ithelpers4625
    @ithelpers4625 3 года назад

    Thank you :)

  • @linuxinside6188
    @linuxinside6188 5 лет назад +1

    Finally This channel Monetized .. 🎉🎉🎉🎉🎈

  • @md.arifurrahman9563
    @md.arifurrahman9563 4 года назад

    Thanks a bunch!

  • @aliciavegas5287
    @aliciavegas5287 4 года назад

    how can i replace a file to another user

  • @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

  • @CarlyMonster
    @CarlyMonster 3 года назад

    THANK YOU!!!

  • @bodob280
    @bodob280 4 года назад

    thank you vary much sir

  • @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

  • @poonambharara9068
    @poonambharara9068 5 лет назад

    Thank you so much, Sir, I really learned a lot and enjoyed this video:)

  • @mahabooblinux
    @mahabooblinux 3 года назад

    nice

  • @gabbermensch
    @gabbermensch 4 года назад

    Anyone else think this man looks like a handsome version of Ari Shaffir?

  • @ninonazghaidze7687
    @ninonazghaidze7687 5 лет назад

  • @KartonDoBoZ
    @KartonDoBoZ 4 года назад

    OMG I am watching this video at Thu 11:10 am :O :O :O :O Lizard Nation

  • @NetworkEngineer
    @NetworkEngineer 5 лет назад

    X.500 standard active directory

  • @PodCashUSA
    @PodCashUSA 4 года назад +1

    3:40 you're welcome

  • @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....