Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to give DBA's permission to run chfs in AIX

Status
Not open for further replies.

Edward1982

Technical User
Oct 1, 2008
15
US
Question: What is the best way to give DBA's permission to increase a file size? I've looked into SUDO and that's not an option. The two commands they need to run are smit and chfs. Thanks in advance.
 
hi,

probably you mean "file system" size; smit is just a launcher, the command to increase file system size is chfs.

chfs -a size=newsize /filesystem/name

(where size in 512 KB-blocks)
(those you see by df, without -k)

(in current versions of AIX there are more options to give
the difference or other)

The problem is that if you "unprotect" chfs bye sudo,
the DBA may alter other fs.

bye
vic
 
Thanks for responding Victorv. I'm trying to make it easy for the DBA's to change the file sysytem size by using smitty opposed to using the command line option. They might have to use the command line. I've investigated using SUDO and by giving them access to smit fs, I've given them root access to everything, which is bad. (They can pop out to a root shell.) Any ideas? Can I put them in a group or something and change the permission on chfs??
 
hi,

sudo chfs + a script in which he pass the new size (or delta) ?

bye
 
A sudo to smit chfs is still an option, just make sure that the shell escape is prohibited, e.g. by setting
[tt]SHELL=/usr/bin/sorry[/tt]
before executing smit...


HTH,

p5wizard
 
I thought of doing the same with our DBAs but then i didn't want the DBAs to screw up with clustered fs as well! so i didn't do it!

I don't think it is a good idea!

Reagrds,
Khalid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top