autofs (automount) zapis na fd0

Gdy jakieś urządzenie nie chce w Slackware działać...

Moderatorzy: Moderatorzy, Administratorzy

gain
Użytkownik
Posty: 23
Rejestracja: 2006-03-31, 18:58

autofs (automount) zapis na fd0

Post autor: gain »

chcialem zeby plyta cd czy dyskietka mountowaly mi sie odrazu po wlozeniu i nie bede musial odmontowywac to uzylem autofs i prawie wszystko jest dobrze i prawie dziala bo...
jak wlozylem dystkieke i chcialem cos zapisac to niestety kupa :( ale do auto.misc dopisalem

Kod: Zaznacz cały

floppy -fstype=auto,sync,nodev,user,rw,umask=000 /dev/fd0
i teraz juz zapisuje na dyskietke zamontowaną automatycznie (zwykly user tez moze zapisywac) ale przed tym jak zapisze pluje sie ze nie moza zmienic praw i operacja nie dozwolona. Plik sie zapisuje ale przedtym jest taki komunikat.
co zrobic zeby tego nie bylo? nie moge znalesc nigdzie odpowiedzi na to
z gory dziekuje za pomoc
Awatar użytkownika
difrost
Moderator
Posty: 2802
Rejestracja: 2006-03-11, 12:31
Lokalizacja: Wrocław
Kontakt:

Re: autofs (automount) zapis na fd0

Post autor: difrost »

gain pisze:ale przed tym jak zapisze pluje sie ze nie moza zmienic praw i operacja nie dozwolona.
Hmm... jak mniemam dyskietka jest na vfat, wiec jak ty chcesz ustawic prawa do pliku na systemie, ktory tego nie obsluguej? man cp
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
gain
Użytkownik
Posty: 23
Rejestracja: 2006-03-31, 18:58

Re: autofs (automount) zapis na fd0

Post autor: gain »

gdy zapisuje jako root nie ma zadnego problemu, tylko jako user jest problem
Awatar użytkownika
difrost
Moderator
Posty: 2802
Rejestracja: 2006-03-11, 12:31
Lokalizacja: Wrocław
Kontakt:

Re: autofs (automount) zapis na fd0

Post autor: difrost »

Sprawdz jako user:

Kod: Zaznacz cały

cp --no-preserve=all jakis.plik /mnt/floppy
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
gain
Użytkownik
Posty: 23
Rejestracja: 2006-03-31, 18:58

Re: autofs (automount) zapis na fd0

Post autor: gain »

no dalej to samo .....
Awatar użytkownika
difrost
Moderator
Posty: 2802
Rejestracja: 2006-03-11, 12:31
Lokalizacja: Wrocław
Kontakt:

Re: autofs (automount) zapis na fd0

Post autor: difrost »

Chwilowo brak koncepcji, jak cos wymysle to napisze :rotfl:
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
gain
Użytkownik
Posty: 23
Rejestracja: 2006-03-31, 18:58

Re: autofs (automount) zapis na fd0

Post autor: gain »

ja kukne jeszcze raz do google moze przedtem cos przeoczylem, ale watpie
jakbys cos wymyslil to bylo by superowo
RockFord
Użytkownik
Posty: 47
Rejestracja: 2006-06-30, 08:05

Re: autofs (automount) zapis na fd0

Post autor: RockFord »

a jakie są uprawnienia do samego /mnt/floppy ?
gain
Użytkownik
Posty: 23
Rejestracja: 2006-03-31, 18:58

Re: autofs (automount) zapis na fd0

Post autor: gain »

/mnt/floppy jest linkiem do /media/floppy bo tam jest ustawione automountowanie dyskietki

/mnt/floppy ma 755 root root
/media/floppy te same prawa i wlasciciel

probowalem zmienic wlasciciela z root na gain ale nie da sie
RockFord
Użytkownik
Posty: 47
Rejestracja: 2006-06-30, 08:05

Re: autofs (automount) zapis na fd0

Post autor: RockFord »

to ustaw uprwnienia na 777
gain
Użytkownik
Posty: 23
Rejestracja: 2006-03-31, 18:58

Re: autofs (automount) zapis na fd0

Post autor: gain »

na 777 tez bylo teraz zmienilem na 775
RockFord
Użytkownik
Posty: 47
Rejestracja: 2006-06-30, 08:05

Re: autofs (automount) zapis na fd0

Post autor: RockFord »

a zobacz jeszcze kto jest właścicielem /dev/fd0
podejrzewam że jest tam jakaś grupa floppy

jak nie to zmień, aby była. Następnie dodaj tego uzera do grupy floppy.
gain
Użytkownik
Posty: 23
Rejestracja: 2006-03-31, 18:58

Re: autofs (automount) zapis na fd0

Post autor: gain »

jest grupa floppy :) dodalem usera do floppy nic to nie dalo dalej
ODPOWIEDZ