Rechte-Vergabe ============== s.a. mount.txt s.a. Linux/umask.txt Neuanlegen Datei/DIR: allg.: /etc/profile user: /home/user/.profile z.B. umask 022 ( https://www.howtoforge.de/anleitung/was-ist-umask-unter-linux/ ) Bei den meisten Linux-Distributionen ist der systemweite Standardwert in pam_umask.so oder in der Datei /etc/profile gesetzt. Indem wir den Wert in der Datei ~/.bashrc im Home-Verzeichnis des Benutzers hinzufügen, können wir einen für den Benutzer spezifischen umask-Wert festlegen. Um den umask-Wert zu überprüfen, führen Sie den Befehl umask aus. mounten, mount-options: type ext2: default,grpid,users,dev,exec,suid type ntfs-3g: defaults,users,locale=de_DE.UTF-8,umask=007,gid=46 0 0 type nfs: users,nolock,soft,intr,no_root_squash type smbfs: username=abc,password=123,rw,uid=def,gid=users mounten fstab Häufig benötigte Dateisysteme können bequem über eine Änderung in /etc/fstab als normaler User eingebunden werden. Dem gewünschten Dateisystem muss nur die Option users hinzugefügt werden. //server/freigabe /mnt/usershare cifs user=user,password=password,domain=domain,users 0 0 Das Mounten erfolgt auf der Shell des normalen Users: $ mount //server/freigabe ----------- s.a. man mount The non-superuser mounts. Normally, only the superuser can mount filesystems. However, when fstab contains the user option on a line, anybody can mount the corresponding filesystem. Thus, given a line /dev/cdrom /cd iso9660 ro,user,noauto,unhide any user can mount the iso9660 filesystem found on an inserted CDROM using the command mount /dev/cdrom or mount /cd For more details, see fstab(5). Only the user that mounted a filesystem can unmount it again. If any user should be able to unmount it, then use users instead of user in the fstab line. The owner option is similar to the user option, with the restriction that the user must be the owner of the special file. This may be useful e.g. for /dev/fd if a login script makes the console user owner of this device. The group option is similar, with the restriction that the user must be member of the group of the special file.