Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ISI-TP1-droits
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Razine Hallil
ISI-TP1-droits
Commits
6403b1c4
Commit
6403b1c4
authored
4 years ago
by
Mohamed-Said Hammoudi
Browse files
Options
Downloads
Patches
Plain Diff
refactore: rendu question 1 et 2
parent
1850c09e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rendu.md
+23
-2
23 additions, 2 deletions
rendu.md
with
23 additions
and
2 deletions
rendu.md
+
23
−
2
View file @
6403b1c4
...
...
@@ -2,17 +2,38 @@
## Binome
-
Nom, Prénom, email: ___
-
Hammoudi, Mohamed-Said, email: mohamedsaid.hammoudi.etu@univ-lille.fr
-
Nom, Prénom, email: ___
-
Hallil, Razine, email: razine.hallile.etu@univ-lille.fr
## Question 1
Réponse
*
**create user**
: sudo useradd toto
*
**add to ubuntu groupe**
: sudo adduser toto ubuntu
*
**create file titi.txt**
: touch titi.txt
*
**change user id to toto**
: sudo chown toto titi.txt
*
**remove write permission for the user**
: sudo chmod -w titi.txt
*
**lunch titi.txt with toto user**
: sudo -u toto vim titi.txt
on constate qu'en lençant le fichier avec toto on peut pas ecrire dedans par ce que il a pas les droits d'ecritures pour l'utilisateur.
Donc la réponse est non, le processus peut pas écrire.
## Question 2
Réponse
*
x pour un répertoire : on peut acceder au repertoire.
*
creation de repertoire mydir : mkdir mydir
*
enlever les droits d'execution au groupe ubuntu : chmod g-x mydir
*
entrer dans toto : sudo -u toto -s
*
cd mydir : bash: cd: mydir/: Permission denied
puisque toto apartient au groupe ubuntu et puisque on a enlevé les droits d'eécution du groupe, toto peut pas acceder dans le repertoire.
*
creation de fichier data.txt : touch mydir/data.txt
*
changer d'utilisateur : sudo -u toto vim titi.txt
*
lister le contenu du répertoire : ls -al mydir
>>> -????????? ? ? ? ? ? data.txt
On arrive à lister le contenu de repertoire mydir mais sans voir les permission de contenue.
## Question 3
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment