mount script problem

Dieses Thema im Forum "Linux & BSD" wurde erstellt von MasterJulian, 22. April 2007 .

Schlagworte:
Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 22. April 2007
    ich habe 3 festplatte an meinem linux system (Debian Etch): 1x 20 GB linux, 1x 250 GB Spiele ntfs und Filme/Musik 300gb ntfs extern. Jetzt hab ich ntfs-3g installiert doch per mount -t ntfs-3g bekomme ich einen fehler, dass das system nicht stimme(kein mount per fstab). Mit ntfs-3g /dev/hdb1 /mnt/spiele funktioniert dies(nur mit root rechten). Jetzt hab ich ein scrip in /home/julian/.kde/Autostart erstellet(mount.sh):
    Code:
    #!/bin/sh
    sudo ntfs-3g /dev/hdb1 /mnt/spiele
    sudo ntfs-3g /dev/sda1 /mnt/stuff
    meine /etc/sudoers sieht so aus
    Code:
    # /etc/sudoers
    #
    # This file MUST be edited with the 'visudo' command as root.
    #
    # See the man page for details on how to write a sudoers file.
    #
    
    Defaults env_reset
    
    # Host alias specification
    Host_Alias HOST = debian
    # User alias specification
    User_Alias MODERATOR = julian
    # Cmnd alias specification
    Cmd_Alias NTFS = NOPASSWD: /usr/bin/ntfs-3g
    # User privilege specification
    root ALL=(ALL) ALL
    MODERATOR ALL=(ALL) ALL
    jedoch wird nichts gemountet und wen ich das script per hand aufruf wird mein passwort verlang obwohl NOPASSWD angegben ist. Kann mir jemand helfen, sodass das script funktioniert?
     
  2. 22. April 2007
    AW: mount script problem

    Cmd_Alias NTFS = /usr/bin/ntfs-3g

    MODERATOR ALL=NOPASSWD:NTFS

    Probier mal so.

    MFG
     
  3. 22. April 2007
    AW: mount script problem

    warum machst dus nicht per /etc/fstab?
     
  4. 22. April 2007
    AW: mount script problem

    lies doch nach:
    ...doch per mount -t ntfs-3g bekomme ich einen fehler, dass das system nicht stimme(kein mount per fstab)

    wenn ich versuche das mit mount -t ntfs-3g /dev/hdb1 /mnt/spiele zu machen bekomem ich den fehler, dass nfts-3g unbekannt ist. Somit funktioniert fstab auch nicht
    @bmp thx werde ich mal versuchen
    edit: ich hatte nen schreibtfehler:
    Cmnd_Alias heißt das nicht Cmd_Alias. Erledigt
    ~CLOSED~
     
  5. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.