ACL | Advanced Linux File Permissions | RHCSA Certification #13 | Tech Arkit | EX200

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

ความคิดเห็น • 79

  • @andymok7945
    @andymok7945 2 ปีที่แล้ว +1

    Thanks so much for this video, I have learned quite a bit. I have been playing with Linux for a bit, but have lots to learn yet. Have messed a few times with permissions and time to learn about it properly.

  • @ksbblgr7196
    @ksbblgr7196 2 ปีที่แล้ว +1

    Beautifully expalined and clearly understandable. Thank you

    • @TechArkit
      @TechArkit  2 ปีที่แล้ว +1

      You are welcome!

  • @マキ-i1n
    @マキ-i1n 4 ปีที่แล้ว +3

    Thanks for your video, helped me a lot for my exam. Greetings from Hessen

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +1

      Nice to hear good news. Please subscribe and share video to your friends.

  • @anshulgorewar7356
    @anshulgorewar7356 3 ปีที่แล้ว +1

    It was indeed a brilliant explanation. THank you

  • @gilberttorres2655
    @gilberttorres2655 ปีที่แล้ว +1

    Thank you for explaining this topic to me, you are the first to succeed. However, your last example did not work after entering (getfacl --access /youtube/ | setfacl -d -M /yt/) it returned (setfacl: Is a directory in line 0 of file /yt/). No changes took effect. Would you happen to know what caused this?

    • @TechArkit
      @TechArkit  ปีที่แล้ว +1

      Thanks for sharing

  • @vincentsly
    @vincentsly 4 ปีที่แล้ว +2

    Easily explained , thank you

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +1

      Glad it was helpful!

  • @saurabhkumarsinha9201
    @saurabhkumarsinha9201 6 ปีที่แล้ว +2

    Awesome ravi.Thanks a lot

    • @TechArkit
      @TechArkit  6 ปีที่แล้ว +1

      Thank you Saurabh.

  • @bubaisadhukhan6616
    @bubaisadhukhan6616 ปีที่แล้ว +1

    Can I block a user from downloading or uploading files or directories?
    But files and directories can be edited by the user.

    • @TechArkit
      @TechArkit  ปีที่แล้ว +1

      Yes you can do that.

  • @umeshkolhe6187
    @umeshkolhe6187 5 ปีที่แล้ว +1

    Awesome..
    Explanation is Fab..

    • @TechArkit
      @TechArkit  5 ปีที่แล้ว +1

      Thank you Umesh. Happy Learning.

  • @ksanjay67
    @ksanjay67 4 ปีที่แล้ว +1

    What if i want to give permission to only one folder and no access to all other folders in the directory??? Revoke permission to other folders and full access to only one folder

    • @TechArkit
      @TechArkit  3 ปีที่แล้ว +2

      chmod 777 /topdirectory; chmod -R 740 /topdirectory/

    • @ksanjay67
      @ksanjay67 3 ปีที่แล้ว

      @@TechArkit but do we have to unset any settings for other folders??? If We have 10 subfolders and I want the user to give 777 access to only one folder. To All other subfolders he cannot have read permission also...

  • @ashrafsayed8281
    @ashrafsayed8281 ปีที่แล้ว +1

    It is copied but working
    I set user1 in direc1
    Then I copy direc1 to direc2
    There user is add in direc2
    But user1 can't editing in direc2
    What I do ...?

    • @TechArkit
      @TechArkit  ปีที่แล้ว +1

      Once you create the user home path to user2 ownership will change.

  • @dhammsagar
    @dhammsagar 3 ปีที่แล้ว +1

    Can this possible with normal users.. means can one normal user share directory to another user without using root access

    • @TechArkit
      @TechArkit  3 ปีที่แล้ว +1

      yes, if sudo is allowed.

  • @Likhitha-dy3kn
    @Likhitha-dy3kn 3 ปีที่แล้ว +1

    is this the same procedure we follow in real time also

  • @pyushsinghal3702
    @pyushsinghal3702 4 ปีที่แล้ว +1

    Nicely explained. Can you enlighten the following scenario:
    Suppose if you delete the directory /youtube and create it again. Will permission remain for the user other than root. Even if we give the user1 permission to root ("/") and its sub-directory, permission are applied to existing directory but if root user is creating any directory under root ("/"), permission are not inherited for other users. Any idea, how we can apply the permissions to new directory as well using setfacl.

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +1

      If you delete and recreate /youtube directory, will get user and group ownership which user you have login. Example: user2.
      To inherit the permissions like user or group you need to apply SGUID permissions so that all the subdirectories and files will automatically get group ownership which top directory has.

  • @karlk840
    @karlk840 4 ปีที่แล้ว +1

    User is already created I have two things to do . Please help
    1. User has read only access to log folder. But I see an issue if a new file is created then he is unable to see
    2. Grant him read only access to some new folders
    Basically two things I have

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +1

      send me the command output.

  • @imranmohd8203
    @imranmohd8203 4 ปีที่แล้ว +1

    thankyou friend you are very helpful. your explanation is superb. :-)

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +1

      You are welcome!

  • @gaurvendrasingh4573
    @gaurvendrasingh4573 4 ปีที่แล้ว +1

    Sir , what is the meaning of mask and default permissions in getfacl

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +1

      Mask value is umask value.

  • @ksbblgr7196
    @ksbblgr7196 2 ปีที่แล้ว +1

    Whether these commands works on putty tool?
    Needs urgent response..... Please

    • @TechArkit
      @TechArkit  2 ปีที่แล้ว +1

      putty is used to access Linux and Network devices using SSH, Telnet, Console ports Etc..

  • @flipbudrrrvlogs
    @flipbudrrrvlogs 3 ปีที่แล้ว +1

    Are these settings permanent in Linux?
    When these gets defaulted or removed from acl?
    Facing some issues on NFS... though we are setting the permission after somedays the settings got removed...
    Any reason

    • @TechArkit
      @TechArkit  3 ปีที่แล้ว +2

      No way permissions will not go away automatically. If NFS export is mapped to multiple hosts and changes happened from another host it will also change in another host.

  • @harinathreddy8572
    @harinathreddy8572 4 ปีที่แล้ว +1

    hello Ravi,
    for file acl's do i must use getfacl before setfacl --set-file=- ? is this manditory?

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +1

      Not mandatory however you can see the difference before and after.

    • @harinathreddy8572
      @harinathreddy8572 4 ปีที่แล้ว +1

      @@TechArkitravi if i can give acls on a file and if i use the file name to exicute command like below .
      Setfacl --set-file=test /folder1
      In the test file i have added the use
      u:hari:rwx,g:prodteam:rwx
      I tried like this but not working? Please do suggest if i am wrong

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +1

      @@harinathreddy8572 The --set and --set-file options set the ACL of a file or a directory. The previous ACL is replaced. ACL entries for this operation must include permissions.

  • @ashu9103
    @ashu9103 4 ปีที่แล้ว +1

    Providing permission on a file in home directory will also need permission on home directory ? It will be security issue ?

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +1

      No, superuser or root can change the file/directory permissions without having access to file/directory that's not a security issue.

    • @ashu9103
      @ashu9103 4 ปีที่แล้ว +1

      @@TechArkit I'm sorry that my question was not clear enough .. my question is this:
      Centos 7:
      I have two users user 1 and user 2 , user 1 created a file file1 in /home/user1/Desktop and provided setfacl -m u:user2:rwx file1. When I su user2 he is able to access and modify file1 but if I do su - user2 he is getting permission denied. Why? Your input on this will be highly appreciated

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +2

      you can directly read the file and write the file because access is provided to only file not the top level directories. like cat /home/user1/file1 or vim /home/user1/file1

    • @ashu9103
      @ashu9103 4 ปีที่แล้ว +1

      @@TechArkitexactly.. so what is the solution for it. If I want to give access to another user on a file present in my home directory. Either I should change permission for my home directory or create a directory and provide permission to all on that particular directory, right?

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +2

      @@ashu9103 Assign ACL on particular directory to particular user.

  • @kishore90088
    @kishore90088 4 ปีที่แล้ว +1

    Hello Bro,
    Explanation is good. But let me know after mirroring from one directory to another directory. How can I come back or remove to old permissions which i.e defaults permissions of before replicating or copying and same for files also
    Thanks

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +1

      If you know old permissions what was there apply the same using chmod command.

  • @TharunChandAlahari
    @TharunChandAlahari ปีที่แล้ว +1

    Perfect😊

  • @zymagoras
    @zymagoras 4 ปีที่แล้ว +1

    When you were transfering permissions from /youtube/ to /yt/ you used -d option with setfacl, it adds "default" in front of u:my_username:rwx. What is it for because after doing this i still cannot access file with my user?

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +1

      Check the ACL after transferring, if your using different options along with -d if makes different.

  • @kshamendermishra6213
    @kshamendermishra6213 3 ปีที่แล้ว +1

    let me conclude on ACLs
    ACL means giving different users/group different permission, on a same file.

  • @imranmohd8203
    @imranmohd8203 4 ปีที่แล้ว +1

    Sir ur God sir..

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +1

      its just a sharing is caring.

  • @omega1962
    @omega1962 4 ปีที่แล้ว +1

    Beautiful and clearly explained. Keep it up. Do you have videos on Red Hat Subscription and Red hat satellite server demos?

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +1

      Not yet uploaded, i will upload them soon.

  • @tariqulislam5789
    @tariqulislam5789 5 ปีที่แล้ว +1

    Good job. RHCE tutorial part is available bro?

    • @TechArkit
      @TechArkit  5 ปีที่แล้ว +1

      Yes, RHCE is also available.

  • @RamSaun
    @RamSaun 6 ปีที่แล้ว +1

    Nicely explained

    • @TechArkit
      @TechArkit  6 ปีที่แล้ว +1

      Thank you.

  • @priyasingh5979
    @priyasingh5979 5 ปีที่แล้ว +1

    Thankss!!!

    • @TechArkit
      @TechArkit  5 ปีที่แล้ว +1

      Thanks Priya singh.

  • @nehabhatt1285
    @nehabhatt1285 3 ปีที่แล้ว

    Awesome!

    • @TechArkit
      @TechArkit  3 ปีที่แล้ว

      Thank you! Cheers!

  • @nageshtopineni4812
    @nageshtopineni4812 6 ปีที่แล้ว +1

    nice explain bro linux opertunity good now bro if we possible send best interview quastions bro thank u

    • @TechArkit
      @TechArkit  6 ปีที่แล้ว +2

      Thank You. Yes there are many openings with Linux skill set. But alone Linux is not good, you have to combine any other technology like Big Data, AWS, Automation tools.

  • @ashishpatel9085
    @ashishpatel9085 5 ปีที่แล้ว

    why you use clear command before you explain .....?

    • @TechArkit
      @TechArkit  5 ปีที่แล้ว

      Nothing like that most i have explained.

  • @earthekp
    @earthekp 4 ปีที่แล้ว +1

    I cannot understand your language

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +1

      English is not our native language for that.

  • @sudipkumardutta3862
    @sudipkumardutta3862 4 ปีที่แล้ว +1

    Poor explanation

  • @ranjithap214
    @ranjithap214 ปีที่แล้ว +1

    @10:53 /youtube group has read & write execute permissions when you display getfacl /youtube. however when you give command like ls -ld /youtube it shows group has rwx permissions. should not it be r&x permissions ??