nsaunders

cp permissions

Jun 1st, 2025
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. nicholas@mordor:~/Desktop$
  2. nicholas@mordor:~/Desktop$ id
  3. uid=1000(nicholas) gid=1000(nicholas) groups=1000(nicholas),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),122(lpadmin),134(lxd),135(sambashare),137(docker),140(libvirt)
  4. nicholas@mordor:~/Desktop$
  5. nicholas@mordor:~/Desktop$ sudo mount -o remount,uid=1000 /mnt/external
  6. nicholas@mordor:~/Desktop$
  7. nicholas@mordor:~/Desktop$ cp foo.txt /mnt/external/
  8. cp: cannot create regular file '/mnt/external/foo.txt': Permission denied
  9. nicholas@mordor:~/Desktop$
  10.  
Advertisement
Add Comment
Please, Sign In to add comment