LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-04-2014, 06:13 PM   #1
Roide
LQ Newbie
 
Registered: Dec 2014
Posts: 4

Rep: Reputation: Disabled
Debian 4.0 and NFS Windows Share


I am new to Linux, and need some help. We have a Linux server running Debian 4.0, that needs to connect to a share on a Windows 2012 Storage Server R2 NAS device.

I've configured the Windows share for NFS, and mounted the share on the Linux server successfully (we tried using cifs, but that doesn't work either...with more issues).
On the Linux server, the mounted directory is set for drwxrwxrwx, but when a user creates/saves a file, the permissions on the file are set as -rw-r--r--.

We are using the following command in /etc/fstab to mount the share:
<ip>:/Data /mnt/Windows nfs rw,_netdev

How do I configure this so that when the Linux user saves a file, the permissions are set to -rw-rw-rw- or -rwxrwxrwx?
 
Old 12-04-2014, 07:34 PM   #2
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Debian 4 (called Etch) is old, I mean really old, and no longer supported( over 4 years since it was last supported). Download and install Debian 7 (called Wheezy) because it is the current Stable release. Once you have that done we can help you through things.
https://en.wikipedia.org/wiki/Debian#History
 
Old 12-04-2014, 07:41 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
When a user creates a file anywhere the permissions are likely 664 or 644. You'll need to look into umask to change the default. What happens when a user forces the created file to 777? Does the Windows share change it back or does it persist? If it persists then you just need to change umask. If the Windows share changes it back then you'll need to look into the NFS configuration on the Windows server. Windows file permissions are insanity, and Windows filesystems are no better, so you may have a rocky road ahead of you.
 
1 members found this post helpful.
Old 12-04-2014, 08:00 PM   #4
Roide
LQ Newbie
 
Registered: Dec 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Unfortunately, upgrading isn't an option at this time.

How do I use unmask to force that change?
 
Old 12-04-2014, 08:41 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
then you have a conundrum
Debian 4 might NOT support the hardware
nor will it have support for the protocols that MS used in win server 2012

Quote:
Debian 4.0 was initially released on April 8th, 2007
https://www.debian.org/releases/etch/

see the problem
windows server 2012 was not even a twinkle in the Microsoft eyes in 2007

install Debian 7
 
Old 12-04-2014, 11:07 PM   #6
Roide
LQ Newbie
 
Registered: Dec 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Debian 4 and Windows NFS Share

You aren't listening. Upgrading to version 7 is not an option at this time. I would upgrade if I could, but I can't.
 
Old 12-04-2014, 11:22 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by John VV View Post
windows server 2012 was not even a twinkle in the Microsoft eyes in 2007
I understand the sentiment, but there's a reason protocols and standards are called "protocols and standards" for a reason, it means something. It's the reason why I have a Fedora Core 4 system that can serve and mount NFS shares with a CentOS 7 system without blinking an eye, and why both of which can share and mount Windows XP and Windows 7 shares simultaneously without issue. It's also the reason why the iPod interface I had in my car from 2004 until I sold it in 2012 still worked without issue on an iPhone 4S, a device which hadn't even been imagined at the time the interface was designed circa 2002-2003.

Despite both your and k3lt01's protesting, I do not believe the obsolete status of his OS has anything at all to do with his question.



Now as for the OP - there was an important question in my earlier post. Can a user manually change the permission of his files on the share? If yes, then you simply need to modify the umask to change the default permission for new files. If not, then it's an issue with either the mount or the server (either it's permissions or its filesystem).

Last edited by suicidaleggroll; 12-04-2014 at 11:24 PM.
 
Old 12-04-2014, 11:23 PM   #8
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Quote:
Originally Posted by Roide View Post
You aren't listening. Upgrading to version 7 is not an option at this time. I would upgrade if I could, but I can't.
You are asking people to support you doing something that is a security risk. When they point that out to you you ignore the advice and then when it is pointed out to you again you are, what many may consider, rude. We are listening but you are asking us to do something that may put other users of your server at risk.
 
Old 12-04-2014, 11:34 PM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by k3lt01 View Post
You are asking people to support you doing something that is a security risk. When they point that out to you you ignore the advice and then when it is pointed out to you again you are, what many may consider, rude. We are listening but you are asking us to do something that may put other users of your server at risk.
I agree that any machine that's exposed to the outside world in any way should be running an OS that has active security updates, and any machine with a public IP address absolutely MUST be running an OS with active security updates, including having all unnecessary ports shut down, etc. But we have no indication that the machine the OP is referring to falls into either of these categories. For all we know it's a system sitting on a protected LAN, with no external ports being forwarded to it, possibly without any internet access at all. Nothing the OP has asked for is a security risk, no actions we might suggest exposes his machine to intruders, so I don't see the harm in answering his questions. This: "You are asking people to support you doing something that is a security risk." is not true. That's the response for somebody asking how to bypass a firewall, send an ssh password in plain-text, etc. Not the response for somebody asking about a simple network share on an obsolete OS.

Obviously it's always best for everyone if the machine in question is active on its security updates, but that has already been expressed multiple times in multiple different ways. He's got the point, so now let's answer the question.

Last edited by suicidaleggroll; 12-04-2014 at 11:36 PM.
 
1 members found this post helpful.
Old 12-05-2014, 02:16 AM   #10
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Quote:
Originally Posted by suicidaleggroll View Post
This: "You are asking people to support you doing something that is a security risk." is not true. That's the response for somebody asking how to bypass a firewall, send an ssh password in plain-text, etc. Not the response for somebody asking about a simple network share on an obsolete OS.
I disagree simply because we do not know about the system so until we do I will assume it is open to the world and therfore is a security risk to anyone who uses it.

Quote:
Originally Posted by suicidaleggroll View Post
Obviously it's always best for everyone if the machine in question is active on its security updates, but that has already been expressed multiple times in multiple different ways. He's got the point, so now let's answer the question.
Instead of telling me to assist him to do something I have concerns about you could just follow your own advice and post for him how to do what he wants to do, simple isn't it. I trust you and I can leave this discussion here now.
 
Old 12-05-2014, 12:27 PM   #11
Roide
LQ Newbie
 
Registered: Dec 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Time

The question is now a moot point. We were able to resolve the permissions issue. For clarity's sake, the server is an internal business only server. It is running a highly customized application that is going to take months to re-write to work on a new version of Linux/PHP. Because of this, upgrading at this time is not an option. Is it something we need to do and plan to do? Yes. But it isn't going to happen in the time frame I needed to get this resolved, so upgrading was not something I could do. I appreciate the input and the hesitation in answering the question.

But I wouldn't have asked the question unless I had no other choice. Upgrading is something that has been worked on for the past 6 months, and probably has 6 more to go before we can do it. Until then, I have to keep this server up and running, ensuring that the business has access to the data it needs. If I don't, I am out of a job. It is that simple. Hence, I came to this site, among others, looking for help.
 
  


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
Issue with NFS share on Debian Server HappyAlex Linux - Server 3 04-16-2013 10:00 PM
Can't mount nfs- or cifs-share rw in Debian pingu Linux - Networking 0 07-03-2007 07:43 AM
Debian NFS Share HowTo? carlosinfl Debian 8 06-16-2007 10:52 AM
How to NFS share on a windows server npersaud Linux - Software 4 05-16-2007 04:11 PM
Can I share files with Windows using NFS ? qs_tahmeed Solaris / OpenSolaris 3 01-30-2006 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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