Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.