Skip to content

Commit 52a253f

Browse files
committed
modified: pages/docs/overview/start.md
1 parent 582a8df commit 52a253f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pages/docs/overview/start.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ party_dinosaur.gif
125125
````
126126

127127
## Commands needing root
128-
The next set of actions, namely anything with `--writable` or bootstrap, do require you to use sudo, at least for most things. We can actually shell into a container, with `--writable`, and write to (some) locations for which we have permission to do so. Thus, this is possible to do, and will work depending on the permissions set in the container. For example, here let's shell in and try to write a root `/data` folder:
128+
The next set of actions, namely anything with `--writable` or bootstrap, do require you to use sudo. Well, they require sudo for **most** things. We can shell into a container, with `--writable` without sudo and write to locations for which we have permission to do so. For example, let's shell in to our container using `--writable` without sudo and try to write a `/data` folder at the root of the image:
129129

130130
```bash
131131
singularity shell --writable centos7.img
@@ -135,13 +135,13 @@ Singularity centos7.img:~/Desktop> mkdir /data
135135
mkdir: cannot create directory '/data': Permission denied
136136
```
137137

138-
Oups. How about a folder in the present working directory?
138+
In the above, we see that while it's possible to shell in with `--writable` sans sudo, the content that you can write depends on the permissions set in the container. Let's now try creating a file in the present working directory:
139139

140140
```
141141
Singularity centos7.img:~/Desktop> touch file.txt
142142
```
143143

144-
This we are allowed to do, so it's not totally impossible to write some files in a container without sudo. However, for most things, you will need to use sudo with writable, discussed next. At this point, if you have been working on your shared resource, you will need to move to your personal laptop (and install Singularity if you haven't yet) before trying these out.
144+
This we are allowed to do, however for most things you will likely need to use sudo with writable, discussed next. At this point, if you have been working on your shared resource, you will need to move to your personal laptop (and install Singularity if you haven't yet).
145145
146146
147147
### Writing in the container

0 commit comments

Comments
 (0)