---
# System prepended metadata

title: Apache Zeppelin folder permission issue verification

---

# **Starting Apache Zeppelin**
*all steps are run with root*
### **Using the official docker image**
Make sure that docker is installed in your local machine.
* Use this command to launch Apache Zeppelin in a container.
```
mkdir ~/zeppelin
cd ~/zeppelin
docker run -d --name zeppelin-test -p 8080:8080 --rm apache/zeppelin:0.10.1
```
![](https://hackmd.io/_uploads/SJDYhsldn.png)

To persist logs and notebook directories, and copy```/opt/zeppelin/conf``` to ```$PWD/zeppelin/conf/```

* Create folder
```
mkdir /zeppelin/conf
mkdir /zeppelin/logs
mkdir /zeppelin/notebook
```
* Copy```/opt/zeppelin/conf``` and stop zeppelin-test
```
docker cp zeppelin-test:/opt/zeppelin/conf ~/zeppelin/conf
docker stop zeppelin-test
```
![](https://hackmd.io/_uploads/rkienil_h.png)

* Enable Shiro
```
cp conf/shiro.ini.template conf/shiro.ini
vim conf/shiro.ini
```
![](https://hackmd.io/_uploads/H1qh2ogun.png)

```
[users]
#admin = password1, admin
#user1 = password2, role1, role2
#user2 = password3, role3
#user3 = password4, role2
```
![](https://hackmd.io/_uploads/SySujogun.png)

```
[main]
### A sample PAM configuration
pamRealm=org.apache.zeppelin.realm.PamRealm
pamRealm.service=login
securityManager.realms = $pamRealm
```
![](https://hackmd.io/_uploads/H1tNjie_2.png)

* Launch Apache Zeppelin
```
docker run -d --name zeppelin-test -p 8080:8080 -v $PWD/conf:/conf -v $PWD/notebook:/notebook -v $PWD/logs:/logs -e ZEPPELIN_LOG_DIR='/logs' -e ZEPPELIN_NOTEBOOK_DIR='/notebook' --rm apache/zeppelin:0.10.1
```
![](https://hackmd.io/_uploads/HJpgasx_n.png)

### **Binary packages**
*For Docker PAM authentication requires additional settings, use binary packages instead.*
* Downloading Binary Package

![](https://hackmd.io/_uploads/SyMhgpxdn.png)

```
tar zxvf zeppelin-0.10.1-bin-all.tgz
```
By default Zeppelin is listening at 127.0.0.1:8080. To access a remote Zeppelin, change ```zeppelin.server.addr``` to 0.0.0.0 in ```conf/zeppelin-site.xml```.
* Starting Apache Zeppelin from the Command Line
```
bin/zeppelin-daemon.sh start
```

### **Login with these two account**

![](https://hackmd.io/_uploads/S19kCixd3.png)

![](https://hackmd.io/_uploads/HyY92nl_3.png)

### **Create note with folder /hpe**

![](https://hackmd.io/_uploads/rk9JT2euh.png)

![](https://hackmd.io/_uploads/Bk6Mpnx_n.png)

### **Set note permission readers with user:kevin**

![](https://hackmd.io/_uploads/rJxI6hedn.png)

![](https://hackmd.io/_uploads/BJCP6hxOh.png)

### **User:kevin try to move **NOTE** to trash (FAILED)**

![](https://hackmd.io/_uploads/By9a63guh.png)

![](https://hackmd.io/_uploads/rk6WRhl_n.png)

### **User:kevin try to move **FOLDER** to trash (**SUCCESS**)**

![](https://hackmd.io/_uploads/Bkwu02eun.png)

![](https://hackmd.io/_uploads/SJA9Rnluh.png)

![](https://hackmd.io/_uploads/S1Jey6e_n.png)

