View previous topic :: View next topic |
Author |
Message |
jani_81 n00b
Joined: 29 Nov 2004 Posts: 5 Location: Finland
|
Posted: Thu Sep 01, 2005 5:58 am Post subject: Ongelma samba-jakojen kanssa |
|
|
Olen koettanut saada samba-jakoja toimimaan seuraavan ohjeen mukaan: http://www.gentoo.org/doc/en/quick-samba-howto.xml
Ongelmana on se,että windows kyllä näkee samba jaot, mutta kun yritän käyttää niitä, tulee virhe-ilmoitus "käyttö estetty".
smb.conf näyttää seuraavalta:
Code: |
[global]
# Replace MYWORKGROUPNAME with your workgroup/domain
workgroup = MSHOME
# Of course this has no REAL purpose other than letting
# everyone knows it's not Windows!
# %v prints the version of Samba we are using.
server string = Samba Server %v
# We are going to use cups, so we are going to put it in here ;-)
printcap name = cups
printing = cups
load printers = yes
# We want a log file and we do not want it to get bigger than 50kb.
log file = /var/log/samba/log.%m
max log size = 50
# We are going to set some options for our interfaces...
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# This is a good idea, what we are doing is binding the
# samba server to our local network.
# For example, if eth0 is our local network device
interfaces = lo eth0
bind interfaces only = yes
# Now we are going to specify who we allow, we are afterall
# very security conscience, since this configuration does
# not use passwords!
hosts allow = 127.0.0.1 192.168.1.101/24
hosts deny = 0.0.0.0/0
# Other options for this are USER, DOMAIN, ADS, and SERVER
# The default is user
security = share
# No passwords, so we're going to use a guest account!
guest account = samba
guest ok = yes
# We now will implement the on access virus scanner.
# NOTE: By putting this in our [Global] section, we enable
# scanning of ALL shares, you could optionally move
# these to a specific share and only scan it.
# For Samba 3.x. This enables ClamAV on access scanning.
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
# We create a new share that we can read/write to from anywhere
# This is kind of like a public temp share, anyone can do what
# they want here.
[public]
comment = Public Files
browseable = yes
public = yes
create mode = 0766
guest ok = yes
path = /home/samba/public
valid users = karttune
write list = karttune
|
E: Ei näemmä toimi vieläkään oikein. Nyt näen jaot, voin tehdä jakoon uusia tiedostoja, siirtää tiedostoja jakoon. Mutta jos koetan avata jonkun tiedoston, tai kopioida sitä verkkolevyltä, tulee access denied. |
|
Back to top |
|
|
jani_81 n00b
Joined: 29 Nov 2004 Posts: 5 Location: Finland
|
Posted: Tue Sep 13, 2005 9:54 am Post subject: |
|
|
Eikö kellään ole hajua,että missä vika mahtaisi olla. Luulisi,että jos asemalle kerta pystyy kirjottamaan, ja poistamaan sinne laitettuja tiedostoja, voisi sen tiedostoja myös kopioida pois sieltä, tai käyttää.... |
|
Back to top |
|
|
Obi-Lan Apprentice
Joined: 21 Jan 2005 Posts: 230 Location: Riihimäki
|
Posted: Tue Sep 13, 2005 3:00 pm Post subject: |
|
|
No lonkalta heittäisin, että sulla on ongelmaa käyttäjäoikeuksien kanssa. Olen huomannut Windows verkkojakoja tehdessäni windows koneille, että jos toinen kone on esim. XP home tai joku muu karsittu malli niin paras tapa on tehdä niin, että luo jakokoneelle samat tunnukset ja salasanat... |
|
Back to top |
|
|
jani_81 n00b
Joined: 29 Nov 2004 Posts: 5 Location: Finland
|
Posted: Thu Sep 15, 2005 10:21 am Post subject: |
|
|
Obi-Lan wrote: | No lonkalta heittäisin, että sulla on ongelmaa käyttäjäoikeuksien kanssa. Olen huomannut Windows verkkojakoja tehdessäni windows koneille, että jos toinen kone on esim. XP home tai joku muu karsittu malli niin paras tapa on tehdä niin, että luo jakokoneelle samat tunnukset ja salasanat... |
Ei ollu ongelma käyttäjäoikeuksien kanssa. Tällä hetkellä toi kyselee salasanaa, ennen kuin se päästää tekemään mitään tuolle jaolle, mutta sekään ei auta. Liekkö nyt syy sitten tässä XP Homessa. |
|
Back to top |
|
|
Zarhan l33t
Joined: 27 Feb 2004 Posts: 997
|
Posted: Thu Sep 15, 2005 8:08 pm Post subject: |
|
|
Onko kernelissä käännetty tuki samballe vai CIFSille?
Oikea vaihtoehto jos et käytä Win'98:aa on CIFS (eli Samba 3). |
|
Back to top |
|
|
bender3000 n00b
Joined: 04 Oct 2003 Posts: 7
|
Posted: Sat Oct 15, 2005 7:25 am Post subject: Re: Ongelma samba-jakojen kanssa |
|
|
jani_81 wrote: | E: Ei näemmä toimi vieläkään oikein. Nyt näen jaot, voin tehdä jakoon uusia tiedostoja, siirtää tiedostoja jakoon. Mutta jos koetan avata jonkun tiedoston, tai kopioida sitä verkkolevyltä, tulee access denied. |
Ehkäpä read only tulee olla explisiittisesti = no
tässä mulla duunissa hyvin toimivat asetukset:
Code: | [galkeh]
comment = Galaxi Kehitys
path = /home/users/galkeh
valid users = xxxx,yyyy
force user = galkeh
force group = users
read only = No
create mask = 0660
force create mode = 0660
force directory mode = 0770 |
HTH _________________ this space was for rent |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|