Crusty

Lifer
Sep 30, 2001
12,684
2
81
Okay, I got a local WInXP share mounted on my Gentoo 1.4 system. But I want to be able to write to it as a non-root user. The share is setup on the WinXP box to allow writes to only certain accounts, and when I mount the share I make sure to use one of the ones that has this permission....except that I still cant write to it. and chmod a=wrx /mnt/files doesnt' change it.
 

jonmullen

Platinum Member
Jun 17, 2002
2,517
0
0
chmod only changes the linux permissions nothing to do with this issue...its in a samba setting.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not many any basic syntactic errors.
#======================= Global Settings =====================================
[global]
workgroup = MUC
server string = Samba Server
hosts allow = 192.168.1.0/24
guest account = nobody
log file = /var/log/log.%m
log level = 1
max log size = 500
security = share

# ldap admin dn = "cn=Manager,dc=muclan,dc=com"
# ldap server = localhost
# ldap port = 389
# ldap suffix = "dc=muclan,dc=com"
# ldap ssl = off

encrypt passwords = yes
socket options = TCP_NODELAY

local master = yes

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
domain master = yes

# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
; domain logons = yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat
# run a specific logon batch file per username
; logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
; logon path = \\%L\Profiles\%U

# wins support = yes

dns proxy = no

#============================ Share Definitions ==============================
[mp3]
browseable = yes
writeable = no
path = /home/music
public = yes
admin users = mucman
[homes]
comment = Home Directories
browseable = no
writeable = yes
[public]
browseable = yes
writeable = yes
path = /home/public
public = yes
admin users = mucman



and I am using mount -t smbfs //share/directory /mnt/files -o username=casbah -o password=*************

it mounts just fine...but I still cant write to it.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not many any basic syntactic errors.
#======================= Global Settings =====================================
[global]
workgroup = workgroup
server string = Samba Server
hosts allow = 192.168.1.1/255
guest account = nobody
log file = /var/log/log.%m
log level = 1
max log size = 500
security = share



encrypt passwords = yes
socket options = TCP_NODELAY

local master = yes

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
domain master = yes

# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
; domain logons = yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat
# run a specific logon batch file per username
; logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
; logon path = \\%L\Profiles\%U

# wins support = yes

dns proxy = no

 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
I am not sharing anything on this computer...right now. I just want to be able to write to a share on a WinXP box.
 

skyking

Lifer
Nov 21, 2001
22,725
5,851
146
Any files that you want to share to Windows computers using samba must be defined in smb.conf, as mucman has shown there. This also includes private folders, which you can either browse, or mount as a network drive.
Use the same uname and passwd for a user on the linux machine and windows machine, and the same uname and passwd in smbpasswd, and you will automatically be logged into your private stuff.
Edit: oops! misunderstood the question!
 

Firus

Senior member
Nov 16, 2001
525
0
0
You want to be able to access a share on the XP box from the linux box correct???

Then usually you can just use smbclient to access the windows share from linux. Read the man pages, they are very good for smbclient.
 

Cheetah8799

Diamond Member
Apr 12, 2001
4,508
0
76
yes, use smbclient. your smb.conf has nothing to do with accessing the files on your WinXP system from the Linux system.