Hi all,
I have edited my sudoers file. I am using visudo command
I have added the following lines and saved the file.
I am saving the lines as :wq
But I am very amazed to see that these lines are not written in the sudoers file. I have retried the above process many times, when I... (0 Replies)
Hi,
I logged into a UNIX system as user ABC.
I do not have root previleges and also do not have root password.
I am executing few commands as:
ABC****>sudo su - XYZ
XYZ****>rm file1.txt
XYZ****>exit
ABC****>
Now I want to execute all these commands from a .sh file ( or in any other... (2 Replies)
Hi! I'm very new to unix, so please keep that in mind with the level of language used if you choose to help :D Thanks!
When attempting to use sudo on and AIX machine with oslevel 5.1.0.0, I get the following error:
exec(): 0509-036 Cannot load program sudo because of the following errors:... (1 Reply)
Sudo In AIX, how to find out what commands have been run after a user sudo to another user? for example, user sam run 'sudo -u robert ksh' then run some commands, how can I (as root) find what commands have been run?
sudo.log only contains sudo event, no activity logging. (3 Replies)
I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this:
#!/bin/bash
rsync /path/on/local/machine/ foo.com:path/on/remote/machine/
ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Hi All,
I running a unix command using sudo option inside shell script. Its working well. But in crontab the same command is not working and its throwing
"sudo: sorry, you must have a tty to run sudo". I do not have root permission to add or change settings for my userid. I can not even ask... (9 Replies)
Hi experts
cp bin root src /mnt
but not copy bin/bigfile
any help?
( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum)
Thanks (6 Replies)
Hi, Have a need to run the below command as a "karuser" from a java class which will is running as "root" user. When we are trying to run the below command from java code getting the below error.
Command:
sudo -u karuser -s /bin/bash /bank/karunix/bin/build_cycles.sh
Error:
sudo: sorry,... (8 Replies)
I am trying to edit sudoers file by running the command #visudo. But it is not opening and error showing like 'it is read only filesystem'.
Than I changed the permissions of /etc/sudoers file to 640 and modified it(after I change the permission to 440). Than it is modified successfully. But sudo... (2 Replies)
Discussion started by: welcome23
2 Replies
LEARN ABOUT V7
quotaon
quotaon(1M) System Administration Commands quotaon(1M)NAME
quotaon, quotaoff - turn ufs file system quotas on and off
SYNOPSIS
quotaon [-v] filesystem...
quotaon -a [-v]
quotaoff [-v] filesystem...
quotaoff -a [-v]
DESCRIPTION
quotaon turns on disk quotas for one or more ufs file systems.
Before a file system may have quotas enabled, a file named quotas, owned by root, must exist in the root directory of the file system. See
edquota(1M) for details on how to modify the contents of this file.
quotaoff turns off disk quotas for one or more ufs file systems.
The file systems specified must already be mounted.
These commands update the mntopts field of the appropriate entries in /etc/mnttab to indicate when quotas are on or off for each file sys-
tem. If quotas are on, the string quota will be added to mntopts; if quotas are off, the quota string is not present.
filesystem must be either the mount point of a file system, or the block device on which the file system resides.
OPTIONS
quotaon
-a This option is normally used at boot time to enable quotas. It applies only to those file systems in /etc/vfstab which have ``rq''
in the mntopts field, are currently mounted ``rw'', and have a quotas file in the root directory.
-v Display a message for each file system after quotas are turned on.
quotaoff
-a Force all file systems in /etc/mnttab to have their quotas disabled.
-v Display a message for each file system affected.
USAGE
See largefile(5) for the description of the behavior of quotaon and quotaoff when encountering files greater than or equal to 2 Gbyte ( 2
**31 bytes).
FILES
/etc/mnttab mounted file systems
/etc/vfstab list of default parameters for each file system
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO edquota(1M), quota(1M), quotacheck(1M), repquota(1M), mnttab(4), vfstab(4), attributes(5), largefile(5), quotactl(7I)SunOS 5.10 16 Sep 1996 quotaon(1M)