LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-17-2002, 01:45 PM   #1
lowly_tech
Member
 
Registered: May 2001
Posts: 34

Rep: Reputation: 15
samba modify file error


I have samba running on RH 7.1.
I have configured one directory called /shared on the samba
server and there are 3 directorys below that. Directories 1 and
3 let me have full access to everything from a win2k client.
However directory 2 will not let me rename files. I can create
delete files and subdirectories. I can even rename subdirectories
I just can't rename files in the 2nd directory. I get a make sure file is not in use/access denied. I can't think of anything that would make this happen. I chown the directory /shared as well as chmod 777 (secerity is no issue). I don't know much more about samba to resolve this. When you LS at a console all rwx are there on the files in the 2nd directory. Any thoughts???

Thank you very much for any help on the subject.

Jamie

Samba.conf
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# 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]
path = /shared
force directory mode = 777
create mode = 777
printing = lprng
force create mode = 777
dns proxy = no
encrypt passwords = yes
null passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
valid users = jamie
printcap name = /etc/printcap
force user = jamie
max log size = 0
writable = yes
directory mode = 777
security = user
ssl ca certfile = /usr/share/ssl/certs/ca-bundle.crt
server string = Samba Server
workgroup = WORKGROUP
delete readonly = yes
netbios name = lcars
log file = /var/log/samba/%m.log
load printers = yes
guest account = jamie
public = yes

[homes]
comment = Home Directories
browseable = no
writable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /home/netlogon
; guest ok = yes
; writable = no
; share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /home/profiles
; browseable = no
; guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
printable = yes

# This one is useful for people to share files
;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = @staff

# Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; printable = yes

# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no

# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %u option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765



[shared]
path = /shared
writable = yes
valid users = jamie
 
Old 05-17-2002, 02:02 PM   #2
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
try adding "case sensitive = no" to the [shared] section. I had weird errors like that with some files because of that...

When you chown and chmod, make sure to use the -R option to recursively chown and chmod everything inside the /shared directory. Also use the -v option to see what's going on. Check the permissions too, make sure that "jamie" owns the directories and files.

As a test, try creating another (fourth) folder from Windoze in the shared area, and check it's perms/ownership, make sure it's not doing anything weird.
 
Old 05-17-2002, 02:51 PM   #3
lowly_tech
Member
 
Registered: May 2001
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks Sewer_monkey for the help.
I added the case sensitive line to the smb.conf file and restarted the service. I as well put the -R and -v on chown and mod and everything looked error free. It still won't let me rename (modify) files in the 2nd directory. I created a 4th and copied files into it and I could rename them just fine. Jamie is the owner listed on all directories and files.
 
Old 05-17-2002, 03:57 PM   #4
lowly_tech
Member
 
Registered: May 2001
Posts: 34

Original Poster
Rep: Reputation: 15
new developments

I have found out a few interesting things about my rename problem. Directory 2 is where all mp3's are stored. When I rename the extention from mp3 to lets say doc I can rename the entire file. If I move a MP3 to directory 1 or 3 I get the same: "Make sure disk isn't full or write protected." when i rename. It appears to be the MP3 extention itself that is causing the error. I don't know what that problem would be, anyone have a clue?
 
Old 05-17-2002, 05:46 PM   #5
lowly_tech
Member
 
Registered: May 2001
Posts: 34

Original Poster
Rep: Reputation: 15
I think I got it figured out. The problem I believe is ...of course win2k. I installed win2k on another machine and mapped the drive to the shared folder and I have full access to anything and everything. It is only from my current machine that I have this problem.
 
  


Reply



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
Samba - Modify File Date Azhrarn Linux - Software 1 09-06-2005 01:51 PM
Samba OS X to Linux Samba file share error ttoomey Linux - Software 1 08-16-2005 10:12 AM
How to modify a file? kornerr Programming 4 08-08-2005 09:08 AM
Cannot create, modify, or write to Samba shares mpriddy Linux - Software 4 02-18-2004 10:40 AM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:25 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration