LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-10-2006, 08:21 AM   #1
tom@condorcape.com
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Rep: Reputation: 0

I'm having trouble with an NFS/SAMBA server.

Our server 192.168.21.80 is running both SAMBA (for windows clients) and NFS (for irix clients).

When I log in as root on the irix machine I can write to the file server and anybody can modify it which is what I want.

The problem is that the program running uses "flame8_5_6" as the username. When I create a file under this user nobody else can modify it.

Here are the permissions when I run an ls -la

drwxr-xr-x 2 65534 65534 48 Oct 10 07:48 test (When logged in as root)
drwxr-xr-x 2 flame8_5 user 48 Oct 10 08:17 test2 (When logged in as flame8_5_6)

Any ideas how I can fix this?

Here's my /etc/exports


/disc1 *(rw,all_squash,sync)
/disc2 *(rw,all_squash,sync)
/disc3 *(rw,all_squash,sync)
/disc4 192.168.21.94(rw) 192.168.21.93(rw)
/disc5 *(rw,all_squash,sync)
/disc6 *(rw,all_squash,sync)
/disc7 *(rw,all_squash,sync)
/disc8 *(rw,all_squash,sync)

Last edited by unSpawn; 10-10-2006 at 08:41 AM.
 
Old 10-11-2006, 01:41 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well this is nothing to do with (your amazingly insecure and vulnerable) NFS implementation, just the umask of this particular user. if you run "umask 000" as your user then any files you create are going to be world writeable. again this is massively insecure and i'd urge you to think of a more intelligent solution here...
 
Old 10-11-2006, 02:01 AM   #3
tom@condorcape.com
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Yea I realised it's very unsecure. Unfortunately every single person in the company needs RW access to all files on all those folders.

Thanks for the help. It's working!!!!!
 
  


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
NFS Write Permission louisb Linux - Enterprise 2 02-20-2006 07:16 AM
NFS -- no read write ihopeto Linux - Networking 0 01-18-2006 10:31 PM
NFS doesn't want to write with ACIDRIP pablovschby Linux - Software 1 02-22-2005 12:57 PM
Write to NFS reiserfs? Euronymous Linux - Networking 1 10-24-2004 03:26 PM
Can't write to NFS drive. Crashlander42 Linux - Newbie 0 04-14-2004 09:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:25 AM.

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