Permissões de arquivos utilizando getfacl e setfacl

Nos exemplos abaixo irei mostrar como utilizar os comandos getfacl e setfacl para controlar acls de permissões no Linux / Samba:

admin@localhost ~]$ getfacl teste.txt
# file: teste.txt
# owner: admin
# group: admin
user::rw-
group::rw-
other::r–

Agora vamos atribuir poderes para o usuario sidon
[admin@localhost ~]$ setfacl -m user:Sidon:rw teste.txt

Vamos ver o que nos mostra getfacl:

[admin@localhost ~]$ getfacl teste.txt
# file: teste.txt
# owner: admin
# group: admin
user::rw-
user:Sidon:rw-
group::rw-
mask::rw-
other::r–

Tirando a leitura de “other”
[root@localhost admin]# setfacl -m o:— teste.txt

O lque mostra getfacl:
[root@localhost admin]# getfacl teste.txt
# file: teste.txt
# owner: admin
# group: admin
user::rw-
user:Sidon:rw-
group::rw-
mask::rw-
other::—

Importante:
Para funcionar samba, inclua no smb.conf:

#acls
map acl inherit = yes
inherit acl = yes
inherit permissions = yes

Instalando o Windows 10 no Raspbery 2

Artigo em inglês:

What you need

  1. A PC running Windows 10 (Prepared in the previous step)
  2. Raspberry Pi 2
  3. 5V micro USB power supply – with at least 1.0A current. If you plan on using several power-hungry USB peripherals, use a higher current power supply instead (>2.0A)
  4. 8GB micro SD card – class 10 or better. (We suggest this one or this one)
  5. HDMI cable and monitor
  6. Ethernet cable
  7. Micro SD card reader (Due to an issue with most internal SD card readers, we suggest an external USB card reader like this one or this one)

Install the Windows 10 IoT Core tools

  1. Download the ISO for the Raspberry Pi 2 from the Microsoft Download Center.
  2. Save the ISO to a local folder

  3. Double click on the ISO (IoT Core RPi.iso). It will automatically mount itself as a virtual drive so you can access the contents.

  4. Install Windows_10_IoT_Core_RPi2.msi. When installation is complete, flash.ffu will be located at C:\Program Files (x86)\Microsoft IoT\FFU\RaspberryPi2

  5. Eject the Virtual CD when done

Put the Windows 10 IoT Core image on your SD card

  1. Insert a micro SD card into your SD card reader.
  2. Use IoTCoreImageHelper.exe to flash the SD card. Search for “WindowsIoT” from start menu and select the shortcut “WindowsIoTImageHelper”

  3. The tool will enumerate devices as shown. Select the SD card you want to flash and then provide the location of the ffu and flash the image.

  4. Click on the Safely Remove Hardware icon in your task tray and select your USB SD card reader to safely remove it from the system. Failing to do this can cause corruption of the image.

    NOTE: If you want to remove Windows 10 IoT Core from your SD card after you are done using it, see the FAQ section titled How do I remove Windows 10 IoT Core from my SD card?.

    NOTE: IoTCoreImageHelper.exe is the recommended tool to flash the SD card. However, instructions are available for using DISM command line tool directly

Hook up your board

  1. Insert the micro SD card you prepared (the slot is on the opposite side of the board shown below).
  2. Connect a network cable from your local network to the Ethernet port on the board. Make sure your development PC is on the same network.

    NOTE: If you don’t have a local wired network, see here for additional connection options.

  3. Connect an HDMI monitor to the HDMI port on the board.
  4. Connect the power supply to the micro USB port on the board.

Boot Windows 10 IoT Core

  1. Windows 10 IoT Core will boot automatically after connecting the power supply. This process will take a few minutes.
  2. Once the device has booted, the DefaultApp will launch and display the IP address of your RPi2.

  3. Follow the PowerShell documentation here to use PowerShell to connect to your running device. You can also follow the instructions here to use SSH to connect to your device.
  4. It is highly recommended that you update the default password for the Administrator account. To do this, issue the following commands in your PowerShell connection:

    Replace [new password] with a strong password:

     net user Administrator [new password]
    

    Once this is done, you’ll need to re-establish the current session using enable-psSession with the new credentials.

Mais informações em https://ms-iot.github.io/content/en-US/win10/SetupRPI.htm

Como dar um bypass na autênticação do iTunes no Squid

Se você utiliza o Squid para fazer o controle de acesso e precisa atualizar aplicativos via iTunes liberar as seguintes urls em suas rules do Squid:

*.apple.com
*.verisign.com
itunes.apple.com
albert.apple.com
gs.apple.com
phobos.apple.com
a1.phobos.apple.com
deimos3.apple.com
ax.itunes.apple.com
metrics.apple.com
ax.phobos.apple.com.edgesuite.net
ax.init.itunes.apple.com
my.itunes.apple.com
*.woopra.com
c12850432.mgr.gcsp.cddbp.net
*.mzstatic.com