LinuxQuestions.org
Visit Jeremy's Blog.
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 09-24-2004, 10:36 PM   #1
pompiang
LQ Newbie
 
Registered: Sep 2004
Location: Philippines
Distribution: Linux SuSE 8.2
Posts: 3

Rep: Reputation: 0
Unhappy 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?

Last edited by pompiang; 09-26-2004 at 09:34 PM.
 
Old 09-25-2004, 04:05 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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.
 
Old 09-26-2004, 09:48 PM   #3
pompiang
LQ Newbie
 
Registered: Sep 2004
Location: Philippines
Distribution: Linux SuSE 8.2
Posts: 3

Original Poster
Rep: Reputation: 0
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! =)

Last edited by pompiang; 09-26-2004 at 10:07 PM.
 
Old 09-26-2004, 09:58 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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.
 
Old 09-26-2004, 10:47 PM   #5
pompiang
LQ Newbie
 
Registered: Sep 2004
Location: Philippines
Distribution: Linux SuSE 8.2
Posts: 3

Original Poster
Rep: Reputation: 0
I tried running the command edquota user1 and it replied with "No Filesystems with quota detected"

thanks again
 
  


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
Problem with Samba - Will not save profiles from XP ikw38 Linux - Networking 1 03-17-2004 07:01 AM
how to open port for Linux Samba for windows users 12345671 Linux - Security 6 03-08-2004 03:42 AM
save and restore Users and accounts, settings mail etc. jmanjohn61 Linux - Newbie 4 01-12-2004 06:43 PM
samba and groups! save my life please! djcomplex Linux - Software 1 01-12-2004 12:17 PM
How to detect samba users when trying to shutdown linux server Darick Ang Linux - Networking 2 07-14-2003 04:37 PM


All times are GMT -5. The time now is 11:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration