LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-11-2004, 09:57 AM   #1
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Rep: Reputation: 30
Exclamation file ownership is changing on me [solved]


I just migrated an old application from Novell 3 to debian linux. Everything is working find except that when users access the application from their windows 98 machines the ownership of the files on the linux server are being changed.

Right now I have everyone set up with an individual username and password both for their linux account and for samba. Furthermore, they are all members of the group 'staff'. All the files are defaulted to owner:group root:staff, however after somebody does something in the application (like enter new data) it changes the owner:group of the affected file to fred:fred. Which prevents everyone (including fred for some reason) from proceeding. I have to manually login as root and type 'chown root:staff *.*' before people can continue.

Given that I can't change the application (it's an old app written in dbase), is there some way I can make this work? Maybe create a group and give everyone therein admin privs? Some other solution? Help!

Last edited by viniosity; 10-12-2004 at 08:14 PM.
 
Old 10-12-2004, 06:50 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Its a Samba config problem. You need to force the user you want when these people have access to write to the files, etc.

Post your smb.conf file and it'll make it easier for us to give an accurate answer and possible setup that will work.
 
Old 10-12-2004, 08:13 PM   #3
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Original Poster
Rep: Reputation: 30
Yup, that was it. Thanks so much for the pointer! Here are the changes to smb.conf that made it work:


[foo]
browseable = yes
path = /usr/local/foo
writeable = yes
create mask = 0775
directory mask = 0775
security = share
force group = staff
force create mode = 0664
force directory mode = 0775
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing file permissions on upload guix Linux - General 2 07-05-2004 08:58 AM
What is changing my file permissions? lamekain Linux - Security 10 12-08-2003 04:22 AM
Changing file permissions and attributes lectraplayer Linux - Newbie 2 06-22-2003 09:10 PM
Changing File Permissions? bmann Linux - Networking 3 04-10-2003 08:22 PM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:45 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