LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Users can save to Linux Suse 8.2 using Samba 2.2.7a-58 (https://www.linuxquestions.org/questions/linux-newbie-8/users-can-save-to-linux-suse-8-2-using-samba-2-2-7a-58-a-234952/)

pompiang 09-24-2004 09:36 PM

Users CAN'T save to Linux Suse 8.2 using Samba 2.2.7a-58
 
Hi, I'm just new to this forum and this is the first linux forum I joined. I hope someone out there can help me with my problem.

I have converted my HP-Compaq D220 2.4Ghz, 40Gb HDD, 256Mb ram from Windows XP to Linux Suse 8.2

I have also installed samba 2.2.7a, this is included in the installation CD of suse. After configuring the smb.conf i have tested the connectivity from other Winxp machines to the new samba. It worked fine, but i have to include the ipadd and hostname of the Linux box to the lmhosts file of those winxp for them to be able to see the Linux server, but that's another problem.

The real problem is, I have atleast 30Gb total diskspace in the /home. In /home, i have created 4 directories, dir1, dir2, dir3...etc. my office mates had a great time using the linux server as a mean for storing files. Now, they can't save any files, but when i looked at the linux server, it still has 18.9Gb of free diskspace. Before this happened, i tried experimenting on the QUOTA package software included in the CD installation. The QUOTA software I installed was version 3.08-27 and was made by sourceforge.

I tried saving files to the directory where they are denied of diskspace. I logged in as root and the root account can save but the other users cannot.

Since i really don't know how to open an installed software to Linux, I tried giving commands to the shell prompt like quotaon -avug, insmod quota_v1, insmod quota_v2, but nothing happened. I was expecting a new window will pop up and make it easier for me to do the quota. I didn't do anything in the fstab. Can someone help me with the disk saving problem and how to run the quota in windows style?

btmiller 09-25-2004 03:05 AM

Welcome to LQ!

There are a few commands you can use to manipulate quotas:

quotaon and quotaoff are for turning quotas on and off. This is done on a per filesystem. An easy thing for you to do is run quotaoff -a, which will turn off disk quotas in all filesystems. The repquota command tells you where the quotas are set and how much space each user is using. See the man page of each of these commands for more details.

Also, make sure that the users have write priviliges to the Samba share. Check the security settings in the smb.conf files.

pompiang 09-26-2004 08:48 PM

Thanks for the reply, I panicked and I forgot the man pages. Now I turned off the quota. I used the command "quotaoff -avug" I hope that works.


here's the share dir config from the smb.conf

[dir1]
path = /home/dir1
valid users = root pompiang user1 user2 user3
read only = no

[dir2]
path = /home/dir2
valid users = root pompiang user2
read only = no

[dir3]
path = /home/dir3
valid users = root pompiang user3
read only = no


Note: users pompiang, user1, user2 and user3 can't save files to all directories except for the root account, but that was after I ran the "quotaon -avug" command.

I cant really understand the man pages when I read the quotaon Help. What is XFS and NFS? Can you give a real example how to give quota?

Scenario 1: I would like to give disk quota over dir1 only with a limit of 4Gb. What commands should I use? How can I see that it is already implemented?

Scenario 2: How can I give user1 a quota of 1Gb, again what exact commands should I use and How could I see it's working?

Anthoer thing, what's the use of smbfstab

I hope Im not asking too much, but I really need some help. Best Regards.

Again, Thank You Very Much! =)

btmiller 09-26-2004 08:58 PM

See the man page for edquota -- it should be a bit more comprehensible. In any case run:

edquota <user>

The edquota program will open a text file. For each filesystem, there are four columns, block soft limit, block hard limit, inode soft limit, and inode hard limit. Edit these values to your liking, save the file, and quit. You can use 'repquota -a' to see if anyone's bad and hit their limit.

pompiang 09-26-2004 09:47 PM

I tried running the command edquota user1 and it replied with "No Filesystems with quota detected"

thanks again


All times are GMT -5. The time now is 04:42 PM.