Ubuntu 18.04 – Change file permissions

Screenshot 20190205 094401

Change permissions If you want to change permissions you need to use chmod. File permissions explained in this post. You can change permissions using characters or number. Let’s see the chmod options for the permissions: read – r or 4 write – w or 2 execute – x or 1 chmod options for user: owner – u group – g other – o all – a or ugo chmod options for actions: add permission – + remove permission – – set permission – = Examples with character options a+x =…

Ubuntu 18.04 – Change file permissions Read More

Ubuntu 18.04 – file permissions

Screenshot 20190131 230022

If you use ls -l command in the terminal you can see detailed information for the files at the current directory Let’s explain those information. From the left until the number is the file permissions and the number is the number of the links/shortcuts to the file. then is the group that the file belongs and the the owner of the file Next is the item size on the disk, item’s last modification date and time, and at the end is the name of the item. Permissions The first character…

Ubuntu 18.04 – file permissions Read More

Windows Server 2016 – SMB share Assign permissions

Screenshot 20181008 104934

Start the Server Manager, click File and Storage Services, then Shares, right-click a share and select Properties. Click Customize permissions Click Add Click Select a principal Enter the object name, click Check Names, select the object you want and then click OK. On Type, select Allow or Deny On Applies to select which subfolders and files should inherit the permissions Select which permissions you want to assign and then OK Click OK to close the Properties If you want to assign advanced permissions then follow the same procedure and in the Permission Entry dialog click…

Windows Server 2016 – SMB share Assign permissions Read More

Windows Server 2016 – SMB set share permissions with PowerShell

Screenshot 20181006 124023

get-smbshareaccess -name share  #you can see the access list for “share” ###remove all access for “everyone” from “share revoke-smbshareaccess -name share -accountname everyone ###grant full access to “everyone”  for “share” grant-smbshareaccess -name share -accountname everyone -accessright full ### Deny access  block-smbshareaccess -name share -accountname everyone ### Remove any access  unblock-smbshareaccess -name share -accountname everyone     Windows Server 2016 – SMB set share permissions with PowerShell

Windows Server 2016 – SMB set share permissions with PowerShell Read More