10 More Discussions You Might Find Interesting
1. Red Hat
Hello,
In linux /etc/rc.d/rc.sysinit mounts root File System as RW during the booting phase.
So why we have entry of it in /etc/fstab?
Thanks,
Nitin (1 Reply)
Discussion started by: Nitin Pradhan
1 Replies
2. UNIX for Dummies Questions & Answers
Hello.
On my family laptop, I have a directory named /local.
It is owned by root.
I want to create a sub-directory named documents ( /local/documents ).
I want to exclude exec for every body in that directory
I want every authenticated linux user can create a sub directory ( ie :... (7 Replies)
Discussion started by: jcdole
7 Replies
3. Shell Programming and Scripting
Im fairly new to bash but I wanted to know about an idea I had to stream my file process these days. I modify .html, and .xml files and usually will take the files right click, create .zip, add files, rename, and cut the zip out of the folder and paste into another folder. I KNOW bash should be... (13 Replies)
Discussion started by: graphicsman
13 Replies
4. AIX
Hi
I'm logged in to an AIX box now and we need to do an audit on this box.
cbssapr01:# pwd
/
Which command will show all the files and directories owned by root user with permissions as 777 ? (8 Replies)
Discussion started by: newtoaixos
8 Replies
5. AIX
Good day. I was looking at implementing a chroot environment using openssh. I know I can use the sshd_config file and dictate that it is to use chroot for a specific directory for a user/group. However, the issue with this is that it is has to be root owned. To my knowledge, there is no mount... (0 Replies)
Discussion started by: smurphy_it
0 Replies
6. UNIX for Dummies Questions & Answers
I've tried to figure this out.
I'm only about 6 mos into my AIX admin duties, but I've got a "security" problem I can't figure out.
I've created a sub directory as follows:
drwx------ 2 root system 256 Apr 13 16:02 mike
I've logged in another session with the following user:
$ id... (2 Replies)
Discussion started by: mpheine
2 Replies
7. UNIX for Dummies Questions & Answers
Being a system administrator i came across a statement as " Excluding temporary directories /tmp and /var/tmp, no root owned files should be in world writable directories"
While the above statement may look straight forward but how would i check if there are any such directories in the... (7 Replies)
Discussion started by: pinga123
7 Replies
8. Linux
Hello,
I have generated a PHP script that creates files needed for EPUB file.
I have a temp directory where these files are created into and then needs to be zipped. The directory structure is:
mimetype
content.opf
index.html
stylesheet.css
toc.ncx
META-INF
META-INF/container.xml
... (4 Replies)
Discussion started by: spaze
4 Replies
9. Linux
can somebody help me out in editing the /etc/fstab. I am on RHEL5 (Tikanga).
**The problem is that i have given a wrong LABEL in /etc/fstab for root volume and so after reboot, it is unable to resolve the wrong LABEL;
so, i have to edit the /etc/fstab :-(
-ilan (3 Replies)
Discussion started by: ilan
3 Replies
10. Shell Programming and Scripting
I am trying to write a CGI program which accesses UNIX configuration files and changes them as required.
The thing is, I don't want the CGI program to be "root" owned - it's Perl based! Is there any way that the Perl CGI program can request a username and password - and then use this to... (1 Reply)
Discussion started by: WIntellect
1 Replies
updfstab(8) Red Hat Linux updfstab(8)
NAME
updfstab - update /etc/fstab to reflect removable devices
SYNOPSIS
updfstab [-nt] [--usage]
DESCRIPTION
updfstab is designed to keep /etc/fstab consistent with the devices plugged into your system. It looks for devices such as cdroms, zip and
jaz drives, ls120 drives, and digital cameras on the SCSI and IDE buses. USB devices look like SCSI devices to user space, so those are
supported as well, but are only added if they are currently attached to the system (having a scsi device assigned to them is not suffi-
cient).
Devices which updfstab adds to /etc/fstab are marked with the kudzu mount option to distinguish them from other devices. updfstab will not
remove devices from /etc/fstab unless they are marked with the kudzu mount option. It also ignores devices that are already listed in
/etc/fstab, or which have multiple partitions on the media currently inserted.
OPTIONS
-c,--config=path
Use the configuration specified by path, rather then /etc/updfstab.conf.
-n,--normalize
Normally, updfstab tries to touch /etc/fstab as little as possible. When this option is given, it will instead move all of the
devices with the kudzu mount option to the end of the file, and will list the devices in the same order the internal probe returns.
-t,--test
When this option is specified, updstab does not update the /etc/fstab file. Instead, it displays the fstab entries it would use to
standard out. If no changes need to be made, it outputs the string (nothing to do) rather then a full filesystem table.
CONFIGURATION
The devices updfstab looks for are specified by its configuration file, /etc/updfstab.conf by default. It defines a number of devices which
updfstab looks for on the system, along with various attributes of that device. If a single device name is given multiple times, later val-
ues override those given earlier. However, match directives accumulate; all specified matches remain in effect for that device. The
default value of flags may be changed by specifying a new value for that flag outside of any device section, which changes the default for
all future devices.
A simple configuration file looks like this:
# sample updfstab configuration file
symlink false
device cdrom {
symlink true
match cdrom
}
device zip {
match hd zip
match floppy "zip"
}
Here two devices are specified, cdrom and zip. If a cdrom device is found on the system, a /dev/cdrom is created pointing to the /dev entry
for the device, and /mnt/cdrom is added to /etc/fstab. The next entry looks for hard drive devices with zip in their description as well as
floppy devices with zip in their description. If either is found /mnt/zip is added to /etc/fstab, but no symlink is created.
Here is the complete list of directives which may be used:
device name
Set attributes for device name name. The name is used in the /etc/fstab entry and for any symbolic links which are created.
include path
Parsing of the current configuration file is stopped, and the file specified by path is read for current configuration information.
Multiple include directives may be given, but they may not appear inside of device sections.
match class string
This directive adds a new rule for this device type; devices found on the system which match this rule are considered a device of
the type whose section the match directive appears in. The class must be cdrom, floppy, or hd. If string appears, it must be a sub-
string of the physical device's description for the rule to match.
nofstab val
If val is true, updfstab does not add a mount entry to /etc/fstab. This is mainly useful in conjunction with symlink.
partition num
Specifies a default partition number which should be mounted from this device. If 0 is used, no partition number appears. updfstab
always scans /proc/partitions for the proper partition number before relying on this value.
skip val
The device entry is skipped. This lets a configuration file undefine a device that was defined earlier (such as in an included
file). val should be true or false.
symlink val
If val is true, updfstab creates a symbolic link in the /dev directory pointing to the actual device. This symbolic link is then
used in /etc/fstab.
FILES
/etc/fstab
/etc/updfstab.conf
/proc/partitions
SEE ALSO
kudzu(1)
AUTHORS
Erik Troan <ewt@redhat.com>
Red Hat, Inc. 29 Jan 2003 updfstab(8)