To modify a user's disk quota use the edquota command followed by the username. You will see all the disk partitions that have quotas turn on. Change the appropriate disk with the appropriate disk quota you desire. You should always keep the inodes (number of files) at 0 (zero). This means there is no limit on the number of files a user can have. A user can exceed the soft limit for 7 days, but never exceed the hard limit. Here are the filesystems and mount points with quotas:
/dev/sda5 /econ/home (home directories)
The quota system lags the actual disk usage by some time. I have created an automated update of the quota database once a day. The script is in /etc/cron.daily/quotacheck
In order for Windows users to use the Samba server and "map a network drive", they must have the same local username and Pantheon NetID since Samba uses the YALE NT domain to verify credentials. This is a fairly simple process. Here is how you would change local user "smith" to NetID rbs12:
Edit /etc/passwd
Change username field "smith" to "rbs12"
Change home directory field "smith" to "rbs12"
cd /home
mv smith rbs12
cd /etc/postfix
vi canonical
Add "rbs12" with same alias as "smith", keep "smith" there as well
/usr/sbin/postmap /etc/postfix/canonical
/etc/rc.d/init.d/postfix reload
vi /etc/netgroup
Change "smith" to "rbs12" (if it exists)
vi /etc/group
Change "smith" to "rbs12" (if it exists)
cd /var/yp
make
If the person also has a web pages served from their home directory, you'll
need to redirect requests for the "old" home page to where it's been moved
to. You should also tell the user to update any documentation and web
pages that list his/her old home page to the new one. Using the "smith"
example, the old home page was http://jove.eng.yale.edu/~smith and the new
home page is http://jove.eng.yale.edu/~rbs12. To tell the web server to
redirect the requests for the old page to the new page just do the following:
cd /etc/httpd/conf
vi srm.conf
Add the following line:
Redirect /~smith http://jove.eng.yale.edu/~rbs12/
There always is a Redirect section in the file so place it with the
other ones.
/etc/rc.d/init.d/httpd reload
When the Windows user "maps a network drive" the drive name will be:
\\jove.eng.yale.edu\NetIDThey should use their Pantheon password. If this fails, the Windows users may have a password synchronization problem. If they have NEVER logged into to YALE WindowsNT domain before, chances are their NT and UNIX passwords are different. They should synchronize their passwords. This is easily done by visiting: http://www.yale.edu/password/
The Network Information Services (NIS) directory is /var/yp. To remake and distribute the NIS database files or maps, simply type make from the /var/yp directory. The only machine running as an NIS server is jove. There are no NIS slave servers. The important maps that get distributed are: passwd, shadow, group, netgroup and hosts. The source files are located in /etc. If you ever make a change to one of these files in /etc you should remake and distribute the NIS database files.
To install an RPM update on all the Linux machines, you must keep in mind that AIDE is running, so you'll have to update the AIDE database as well. Here is how you would install XYZ.rpm on all the Linux machines:
NOTE: All this is performed on the SERVER ONLY cp XYZ.rpm jove:/usr/local/updates rpm -F -Uhv /usr/local/updates/XYZ.rpm at -f /usr/local/scripts/update-aide now /root/fixnode /bin/rpm -F -Uhv /usr/local/updates/XYZ.rpm /root/fixnode /usr/bin/at -f /usr/local/scripts/update-aide now
The following scripts are executed at login time:
/etc/csh.login (for csh and tcsh) /etc/profile (for bash and sh)So you need to place the environment variable in these two files on the server first. Then you need to copy it to all the client machines. And lastly, don't forget that AIDE is running so you must update the database on the server and all the clients. Here's what you do, after you make the additions to /etc/csh.login and /etc/profile on the server:
at -f /usr/local/scripts/update-aide now /root/fixnode -c /etc/csh.login /root/fixnode -c /etc/profile /root/fixnode /usr/bin/at -f /usr/local/scripts/update-aide now
Since you now have changed the "standard" client configuration, you should copy these new files to the "standard" client configuration directory:
cp /etc/csh.login /usr/local/configs cp /etc/profile /usr/local/configs