PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Ordner mit Inhalt Löschen



Manta
24.06.03, 12:19
servus leute,

ich möchte gerne auch ordner löschen in denen noch datein gespeichert sind !

momentan geht es nur wenn ich von windows aus erst die datein im verzeichnis lösche und dann erst das verzeichnis !



ich hab suse 8.1 und samba 2.2.5 (blutiger Anfänger) :confused:

maric
24.06.03, 12:43
meinst Du Windows mit MS Windows oder Window von X-Server?

in der shell gibt Du jedenfalls folgendes ein:

zu löschender Ordner z.B.

/home/testuser/killen

rm -r /home/testuser/killen

bis denn

keiner_1
24.06.03, 12:44
Original geschrieben von Manta
servus leute,

ich möchte gerne auch ordner löschen in denen noch datein gespeichert sind !

momentan geht es nur wenn ich von windows aus erst die datein im verzeichnis lösche und dann erst das verzeichnis !



ich hab suse 8.1 und samba 2.2.5 (blutiger Anfänger) :confused:

rm -r


-R For each argument that is a directory, this option causes rm
to recursively delete the entire contents of that directory
before removing the directory itself. When used in
conjunction with the -i option, rm asks whether to examine
each directory before interactively removing files in that
directory and again afterward to confirm removing the
directory itself.

The -R option will descend to arbitrary depths in a file
hierarchy and will not fail due to path length limitations
unless the length of file name, file specified by the user
exceeds system limitations.

-r Equivalent to -R.

Manta
24.06.03, 12:59
ich meinte MS-Windows .....
die Platten sind unter "/Platten/E" und "/Platten/F" gemountet ,sind Fat32 ,die rechte haben "alle"

ich kann sie ja löschen über linux aber nit über die Netzwerkfreigabe von MS-Windows aus ....

hier noch meine samba.conf

# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2003/06/24 12:54:54

# Global parameters
[global]
workgroup = KLEIN-NETZ
netbios name = LEPOSERVER
server string = LepoServer
security = SHARE
encrypt passwords = Yes
null passwords = Yes
time server = Yes
unix extensions = Yes
socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_LOWDELAY
printcap name = CUPS
character set = ISO8859-15
os level = 2
admin users = markus
create mask = 0777
directory mask = 0777
printing = cups
veto files = /*.eml/*.nws/riched20.dll/*.{*}/

[Platte]
comment = Alle Platten
path = /Platte
write list = markus
guest ok = Yes
browseable = No
delete readonly = Yes

[Rot]
comment = Platte Rot
path = /Platte/E
read only = No
browseable = No

[System]
path = /
valid users = markus
write list = markus
read only = No
browseable = No

[Schwarz]
comment = Platte Schwarz
path = /Platte/F
read only = No
browseable = No


PS: und bittte langsam ich stehe noch auf dem schauch bei linux

Manta
24.06.03, 13:03
noch mal ich !!!!
ich nutze "SWAT" bzw lieber "WEBMIN" (weil in Deutsch) zum einstellen

andyR
25.06.03, 10:05
Hallo Manta,

setzt Du Linux oder Windows als Server ein?

Wenn Windows als Server mit FAT32 läuft ist es kein Problem Verzeichnisse zu löschen.

Wenn Linux als Server läuft muss die Samba-Konfigurationsdatei entsprechend angepasst werden - bei SuSE ab 8.0? findest Du die da -> /etc/samba/smb.conf

Gruss

Andy :)

Manta
25.06.03, 18:52
anscheined drück ich mich schlecht aus !!

1. Server ist Linux (SuSE 8.1) mit Samba 2.25
2. Habe 4 Platten eingbaut
HDA (Linux)
HDC (FAT32) noch nicht genutzt
HDE1(FAT32) und HDF1(FAT32) sind für DATEN
3. jetzt hab ich Freigaben gamacht im Samba über WEBMIN
aus die freigaben kann ich zugreifen von WindowsXP aus,
also : Datein : Schreiben Lesen und löschen
Ordner : Erstellen und dort gehen auch datein zu schreiben,lesen und löschen


und jetzt mein Problem :
wenn ich über MS-Windows (hab von W98/2k/Xp aus probiert ist bei allen) auf dem Linux-Rechner zugreife und was löschen will muss ich immer erst alle Datein in den Ordnern Löschen um den Ordner selbst löschen zukönnen , sobald eine Datei im Ordner ist ,ist der wie schreibgeschützt, ist der Ordner wieder leer kann ich ihn wieder löschen.
Das betrift NUR den Zugriff über SAMBA also übers Netzwerk...

meine "/etc/samba/smb.conf"
-----Anfang------
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2003/06/25 18:36:18

# Global parameters
[global]
workgroup = KLEIN-NETZ
netbios name = LEPOSERVER
server string = LepoServer
encrypt passwords = Yes
update encrypted = Yes
null passwords = Yes
time server = Yes
unix extensions = Yes
socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_LOWDELAY
printcap name = CUPS
character set = ISO8859-15
os level = 40
admin users = markus
create mask = 0755
force directory mode = 0777
force directory security mode = 0777
printing = cups
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
share modes = No

[Platte]
comment = Alle Platten
path = /Platte
write list = markus
guest ok = Yes
browseable = No
delete readonly = Yes

[Rot]
comment = Platte in Rot
path = /Platte/E
read only = No
browseable = No

[Schwarz]
comment = Platte in Schwarz
path = /Platte/F
read only = No
browseable = No
-----------Ende-----------------------------------------------------------

und hier meine "/etc/fstab"
-----Anfang ------
/dev/hda2 / reiserfs defaults 1 1
/dev/hde1 /Platte/E vfat users,exec,umask=000 0 0
/dev/hda1 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
/dev/hdf1 /Platte/F vfat users,exec,umask=000 0 0
/dev/hdc1 /Platte/C vfat users,exec,umask=000 0 0

-------Ende-----------

PS: wenns möglich ist mir die änderungen am bessten in den Config datein eintragen
weil noch hab ich noch nit den durchblich mit Linux!

andyR
26.06.03, 08:21
Original geschrieben von Manta
anscheined drück ich mich schlecht aus !!

1. Server ist Linux (SuSE 8.1) mit Samba 2.25
2. Habe 4 Platten eingbaut
HDA (Linux)
HDC (FAT32) noch nicht genutzt
HDE1(FAT32) und HDF1(FAT32) sind für DATEN

Jetzt habe ich es auch verstanden ;-)

Das mit "FAT32" würde ich ändern und ein vernünftiges Filessystem wie z.B. ext2, ext3 oder reiserfs verwenden.


Original geschrieben von Manta

meine "/etc/samba/smb.conf"
-----Anfang------
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2003/06/25 18:36:18

# Global parameters
[global]
workgroup = KLEIN-NETZ
netbios name = LEPOSERVER
server string = LepoServer
encrypt passwords = Yes
update encrypted = Yes
null passwords = Yes
time server = Yes
unix extensions = Yes
socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_LOWDELAY
printcap name = CUPS
character set = ISO8859-15
os level = 40
admin users = markus
create mask = 0755
force directory mode = 0777
force directory security mode = 0777
printing = cups
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
share modes = No

[Platte]
comment = Alle Platten
path = /Platte
write list = markus
guest ok = Yes
browseable = No
delete readonly = Yes

[Rot]
comment = Platte in Rot
path = /Platte/E
read only = No
browseable = No

[Schwarz]
comment = Platte in Schwarz
path = /Platte/F
read only = No
browseable = No


Wenn Du z.B. folgendes einträgst...

[Schwarz]
comment = Platte in Schwarz
path = /Platte/F
read only = No
browseable = No
create mask = 0777
directory mask = 0777

...kann jeder in Verzeichnisse schreiben, jeder hat Zugriff auf alle Dateien auf [Schwarz] und jeder kann alles löschen (auch volle Verzeichnisse).

Schau auch mal unter http://de.samba.org/samba/docs/man/smb.conf.5.html

Gruss Andy :)

Manta
26.06.03, 17:58
erst mal danke andy...

ich wollt schon sagen es geht immer noch nit !!!++
ABER es GEHT und GEHT doch nicht !?! :mad: :confused: :mad:

wenn ich über den "Explorer" oder "Arbeitsplatz" von MS-Windows arbeite geht es auf dem Linuxrechner die verzeichnisse zulöschen. aber ich nutze wegen der besseren übersicht den "Total Commander 5.50" und über den GEHT es NICHT. weis da jemand Rat ?

andyR
27.06.03, 09:24
Hallo Manta,

diesen Commander kenne ich leider nicht, aber vielleicht kann Dir hier jemand helfen http://www.mcseboard.de - ist ein sehr gutes M$-Windoof-Forum :D

Gruß

Andy

Manta
27.06.03, 18:51
geht ! alles ... habe neuste Version vom "Total Commander V5.51" installiert und nu gehts !!


danke nochmals an alle