LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-13-2008, 05:19 AM   #1
Carlos2dub
LQ Newbie
 
Registered: Aug 2007
Location: Madrid
Distribution: Debian 4, openSUSE 10.3, RHEL 5
Posts: 24

Rep: Reputation: 15
Permissions problems with an ethernet harddrive


Hi all,

In the place where Im working we have just purchased a new Lacie 1tb ethernet harddrive . To mount it on the linux server(RHEL) we do it through samba, because it doesnt support nfs and we are experiencing permission problems.

Im mounting the drive like this:
//172.22.1.97/share /data3 smbfs uid=mfoper,gid=mf,auto,bg,username=bigdisk,password=bigdisk 0 0

Here mfoper is the linux user and bigdisk is the user with permissions to write in the drive.

/data3 is the folder where im mounting the drive, which looks like:
drwxr-xr-x 1 mfoper mf 4096 Feb 13 11:26 data3

I dont know why but not even root can change this. I tried chmod 777 /data3
and it doesnt complain, it just dont modify the permissions.


Everybody can read it but only the user who mounts it can write, and the worst of all is that when this user creates a file, this file gets root as the owner and users as group.

I have another problen and is that it doesnt allow to create files bigger than 2gb, could you confirm if this is a problem with samba?

any ideas??
 
Old 02-13-2008, 07:05 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
What filesystem is the network drive formatted with? Most such drives come with FAT32, which has a 2GB file size limitation and doesn't support user permissions.
 
Old 02-13-2008, 11:11 AM   #3
Carlos2dub
LQ Newbie
 
Registered: Aug 2007
Location: Madrid
Distribution: Debian 4, openSUSE 10.3, RHEL 5
Posts: 24

Original Poster
Rep: Reputation: 15
The filesystem is xfs. I didnt know much about this filesystem, actually is the first time I use it but checking it on its site, (http://oss.sgi.com/projects/xfs/ )I found out it should support the normal permission system as it was used in some distros before...

After trying different things I also found out that a normal user can modify files but neither create nor delete, even files created by root.

Is also possible to copy bigger files than 2gb if I do it through ftp instead of samba.

would you recommend to format to ext3?

thanks for the response!
 
Old 02-14-2008, 04:04 AM   #4
Carlos2dub
LQ Newbie
 
Registered: Aug 2007
Location: Madrid
Distribution: Debian 4, openSUSE 10.3, RHEL 5
Posts: 24

Original Poster
Rep: Reputation: 15
I can give more info:

I have mounted the disk using the usb port and it accepts perfectly permissions and any file size.

Any ideas to mount it like this with samba?

thanks guys.
 
  


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
Harddrive Problems tranzz Linux - Hardware 3 12-28-2007 01:17 PM
new harddrive problems angry_red_penguin Fedora 1 07-30-2006 07:21 PM
Permissions on a mounted vfat USB external harddrive Hikaru79 Linux - Hardware 2 02-25-2005 05:39 PM
Cannot change access permissions for second harddrive partition cajunaggie Linux - Hardware 3 01-26-2005 08:31 PM
WD Harddrive Problems Allen614 Linux - Hardware 2 04-24-2003 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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