Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
unix_tunis
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
Container 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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hub-courses
unix_tunis
Commits
186f70dc
Commit
186f70dc
authored
2 years ago
by
Bertrand NÉRON
Browse files
Options
Downloads
Patches
Plain Diff
add section to manage password
and improve rst for Access to external hard drive
parent
039a309a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/Installation/linux_admin.rst
+57
-13
57 additions, 13 deletions
source/Installation/linux_admin.rst
with
57 additions
and
13 deletions
source/Installation/linux_admin.rst
+
57
−
13
View file @
186f70dc
...
...
@@ -183,7 +183,48 @@ to know your
uid=1000(cronos) gid=10010(cronos) groups=1001(cronos),4(adm),24(cdrom),27(sudo),48(docker),100(users), ...
access to external hard drive
Change password
===============
To change your password
-----------------------
The command to use is `passwd`
.. code-block:: shell
passwd
Changing password for cronos.
Current password:
New password:
Retype new password:
passwd: password updated successfully
To change the password of an other user
---------------------------------------
Only root/sudoer can change the password for an other user.
``sudo passwd <login>``
For instance cronos which is sudoer modify the password of user *zeus* (which have a local login)
.. code-block:: shell
sudo passwd zeus
[sudo] password for cronos:
New password:
Retype new password:
passwd: password updated successfully
.. note::
When sudo/root change the password for an other user.
The system does not ask for the user password.
Access to external hard drive
=============================
All files accessible in a Unix system are arranged in one big tree, the file hierarchy, rooted at /.
...
...
@@ -199,36 +240,38 @@ These files can be spread out over several devices.
The mount command serves to attach the file system found on some device to the big file tree.
basics
When you insert usbkey in your computer, xubuntu detect it and trigger a mount command
Unfortunately it does not do the same for filesystem on network.
i
t will be case to connect the PC to the mk1c sequencer.
So we will have to mount manually the filesystem of the sequencer on our machine to
use
allow ``rampart`` to access
I
t will be
the
case to connect the PC to the mk1c sequencer.
So we will have to mount manually the filesystem of the sequencer on our machine to allow ``rampart`` to access
to the data in realtime.
We saw that mount include a device on the our local file system
So we need to know
- which device
- a location where to mount the device we call
ed
mounting point
- a location where to mount the device
,
we call
it the *
mounting point
*.
The mounting point is just a regular directory.
- there are several filesystem formats ext4,vfat, ....
s
o we need to specify which protocol
- there are several filesystem formats ext4,
vfat, ...
.
S
o we need to specify which protocol
- only root can mount a new device
.. code-block:: shell
sudo mount -t <format> <device> <mounting point> <option>
In our case the mk1c export its filesystem over network with the cifs protocol
In our case the mk1c export its filesystem over network with the
`
cifs
`
protocol
.
To do only Once
We create the mointing point (To do only Once)
.. code-block:: shell
sudo mkdir -p /mnt/mk1c
To do each time you need to connect the Pc to the mk1c
.. code-block:: shell
sudo mount -t cifs //mk1c ip address/data -ousername=<the user on mk1c>,uid=<your uid on the Pc>,gid=<your primary gid on the Pc> /mnt/mk1c
$ sudo mount -t cifs //192.168.0.10/data -ousername=minit,uid=1000,gid=1000 /mnt/mk1c
...
...
@@ -237,9 +280,11 @@ To do each time you need to connect the Pc to the mk1c
ls -l /mnt/mk1c
Conversely, the umount command will detach it again.
Conversely, the
`
umount
`
command will detach it again.
to deconnect the Pc from the mk1c
To disconnect the Pc from the mk1c
.. code-block:: shell
sudo umount /mnt/mk1c
...
...
@@ -321,7 +366,6 @@ one very useful command with du is with options
4.0K Videos
Installing package
==================
...
...
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