LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-10-2004, 09:48 PM   #1
Tangz
LQ Newbie
 
Registered: Jul 2004
Location: Deland, FL
Posts: 26

Rep: Reputation: 15
guest write access through samba?


OK, I seem to be having a problem correctly accessing a shared folder from linux.
My wife's p.c. (Windows 2000) has a program called camedia which allows her to transfer images from her pc to the share drive (located on my pc) and ever since I moved to SuSE 9.1 I have been trying to find out how to set up shares.

Well I have the share setup correctly (i think) it is setup as the EXACT same directory as if I were booted into MY windows 2000 machine. Basically I wanted to set it up like this so she wouldnt have to worry about if I was logged into the correct OS or not to be able to transfer her images.

My issue right now is, she has guest access to they share she needs but for some reason it wont let her create new folders. It seems to have read only access. but in the smb.conf file it shows read only = no

here is the smb file...what do i need to put in there to let her have full access to that [pictures] folder....(at the bottom)

[global]
encrypt passwords = yes
guest account = smbguest
netbios name = AWIEG
security = share
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 IPTOS_LOWDELAY
wins support = yes
workgroup = WIEGNET
interfaces = 127.0.0.1 eth0
bind interfaces only = true
printing = cups
printcap name = cups
printer admin = @ntadmin, root, administrator
map to guest = Bad User
[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
[users]
comment = All users
path = /home
writeable = Yes
inherit permissions = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
writeable = Yes
inherit permissions = Yes
[pdf]
comment = PDF creator
path = /var/tmp
printable = Yes
print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z
create mask = 0600
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
[pub]
path = /cifs/pub
read only = no
guest ok = yes
guest only = yes
[Pictures]
path = /windows/C/SHARE/My Documents/My Pictures
read only = no
guest ok = yes
guest only = yes




Here is the user file where I added smbguest in
smbguest:x:4000:4000:Samba Guest Account:/dev/null:/bin/false

also /etc/shadow
smbguest:*:9797:0:::::

and last but not least../etc/group
smbguest::4000
 
Old 07-10-2004, 10:28 PM   #2
Tangz
LQ Newbie
 
Registered: Jul 2004
Location: Deland, FL
Posts: 26

Original Poster
Rep: Reputation: 15
:update:

I think I found out what the issue is, however, I don't know how to resolve it!!!

The directory that I am unable to write to is a windows drive (NTFS) and for some reason when I click on the folder and check permissions it says...

Could not modify the ownership of file /windows/c/share/my documents/my pictures/family/!OLYMPUS!/CAMEDIA/Album. Yo u have insufficient access to the file to perfom the change.

I am logged in as root, how much more privledges does this s.o.b. need?
 
Old 07-11-2004, 04:55 AM   #3
1kyle
Member
 
Registered: Feb 2004
Location: 'Ol Blighty
Distribution: SLED 10, SUSE 10.3
Posts: 722

Rep: Reputation: 32
You can't write to NTFS from Linux (yet).An Idea might be to create a partition on your Windows Box as FAT32 then you can read / write to it.

BTW have you tried the Network Browser in Suse 9.1 -- saves setting up a load of SAMBA configuration files for accessing and mounting Windows Shares.

Provided you set up the Shares on the Windows system then you can simply browse them on SUSE. There should be an Icon on your desktop called LOCAL NETWORK.
This works rather like the Windows Network Browser when you click Entire Network

If not go into Conqueror and enable show navigaton panel or press F9. Click the Icon that looks like a symbol of planet Earth --about 5 down. In the new window click Local Network. --Wait for it to show your Network. You can drag to Desktop ( Copy Here when prompted).

MUCH MUCH Easier than messing about with Samba mounts etc.

BTW do the YOU (Online Updates) as there's been a few fixes to SAMBA (which you still need to have installed).

Also saves looking for fixes for Linneighborhood which has problems when trying to mount devices and you don't have to do anything in the fstab either.

Last edited by 1kyle; 07-11-2004 at 04:57 AM.
 
Old 07-11-2004, 08:23 AM   #4
Tangz
LQ Newbie
 
Registered: Jul 2004
Location: Deland, FL
Posts: 26

Original Poster
Rep: Reputation: 15
Hey, thanks for the tips, quite useful.

why cant a windows 2000 machine write to a linux box (which has a ntfs drive shared?)

I cant really change it (ntfs) that is. because my machine was set up as the 'server' when i set up this network.

one more question, im sure this ones quite easy...........

I found out that when I booted up this morning that the smbd process is started automatically but the nmbd process isn't. How can i have the command /usr/sbin/smbd -D run automatically at boot?

[EDIT] Nevermind on that last thing, I looked at the runlevel editor and it wasnt atomatically started...set it to yes and works fine now!!

Last edited by Tangz; 07-11-2004 at 08:33 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
updated samba, now don't have write access BrianK Fedora 1 10-04-2005 04:10 PM
Samba - No Write Access from Linux Box HKDude Linux - Networking 6 05-30-2005 03:59 PM
samba guest directory once write then no delete ilnli Linux - Networking 1 08-30-2004 02:36 AM
Samba, write access with windoes but not linux Exio Linux - Networking 1 05-17-2004 02:16 PM
Gaining Write Access through Samba MaleMe Linux - Networking 2 06-28-2002 11:15 AM


All times are GMT -5. The time now is 04:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration