LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Anthony Symons <ant@sa.pracom.com.au>
To : Anthony Symons <ant@sa.pracom.com.au>
Date: 09 Nov 2001 16:36:53 +1030
Re: Article on Linux+
Arrgh. I jumped the gun. Time to more closely research umasks. I thought
they were the same syntax as setting permisions.
[ant@ant ant]$ umask 12
[ant@ant ant]$ touch test
[ant@ant ant]$ ls -al test
-rw-rw-r-- 1 ant ant 0 Nov 9 16:36 test
Ant
On Fri, 2001-11-09 at 16:25, Anthony Symons wrote:
> Yes, it all sounds dodgy to me. What about this?
>
> Question 4
> With a umask value of 12, what are the default permissions
> assigned to newly created files?
>
> a. ---x--x-wx
> b. -rw-rw-r--
> c. -r-xr-xr--
> d. -rw-rw----
>
> I make it ----(--x)(-w-), and so does my linux system:
> 1 2 = 12
>
> [ant@ant ant]$ touch test
> [ant@ant ant]$ ls -al test
> -rw-rw-r-- 1 ant ant 0 Nov 9 16:22 test
> [ant@ant ant]$ chmod 12 test
> [ant@ant ant]$ ls -al test
> ------x-w- 1 ant ant 0 Nov 9 16:22 test*
>
> Ant
>
> On Fri, 2001-11-09 at 16:43, Richard Sharpe wrote:
> > Hi,
> >
> > While I managed to learn two things from the article at:
> > http://www.unixreview.com/documents/s=1780/urm0111c/0111c.htm, I have
> > some criticisms of the questions posted in the article.
> >
> > See what you think.
> >
> > |Question 1
> > |You want to allow users to access the CD-RW device on your machine from
> > |any other host on the network via NFS. Further, you only want them to
> > |have read-only access to the device. Which line should you add to the
> > |/etc/exports file to allow this?
> > |
> > |a. /mnt /cdrom *(ro)
> > |
> > |b. /mnt /cdrom *(r)
> > |
> > |c. /mnt /cdrom *
> > |
> > |d. /mnt /cdrom
> >
> > There is very clearly a space between /mnt and /cdrom. Also, unless the
> > checks I just did on my RedHat 7.0 system are fundamentally flawed, a,
> > c, and d all achieve what you want, so the question is ambiguous.
> >
> > |Question 2
> > |Which of the following files defines how FTP connection requests are
> > |processed by the TCP Wrapper?
> > |
> > |a. ftpusers
> > |
> > |b. inetd.conf
> > |
> > |c. ftpaccess
> > |
> > |d. xferlog
> >
> > I do not think that any of the above files defines *how* FTP connection
> > requests are handled by tcp wrappers. /etc/inetd.conf on some (many)
> > Linux systems specifies that tcpd is invoked for incoming FTP requests,
> > and a couple of other files define *how* they are handled.
> >
> > |Question 16
> > |By default, which of the following files would constitute the Apache
> > |document root?
> > |
> > |a. smb.conf
> > |
> > |b. httpd.conf
> > |
> > |c. apache.conf
> > |
> > |d. index.html
> >
> > I think that this question is badly worded, because the 'document root'
> > is the place where HTML documents are placed and is defined in
> > httpd.conf. Also, I don't think that the supplied answer is correct, either:
> >
> > |16. B. The default document root under Apache is the
> > |/etc/httpd/conf/httpd.conf file.
> >
> > The DocumentRoot definition in my httpd.conf file is:
> >
> > DocumentRoot "/var/www/html"
> >
> > This question and its answer is just too confusing!
> >
> > |Question 18
> > |Which field of the /etc/passwd file holds the passwords for users?
> > |
> > |a. first
> > |
> > |b. second
> > |
> > |c. third
> > |
> > |d. fourth
> >
> > Passwords are not kept in the /etc/passwd file. At best, password hashes
> > are kept there. In addition, if /etc/shadow is in use, then password
> > hashes are not kept in /etc/passwd.
> >
> >
> >
> > --
> > Richard Sharpe, rsharpe@ns.aus.com, LPIC-1
> > www.samba.org, www.ethereal.com, SAMS Teach Yourself Samba
> > in 24 Hours, Special Edition, Using Samba
> >
> >
> >
> > --
> > LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
> > To unsubscribe from the LinuxSA list:
> > mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
> >
> --
> Systems Administrator
> Pracom Ltd.
> +61 8 82029074 -=- +61 402 100 671
> anthony.symons@sa.pracom.com.au
>
> PRIVILEGED - PRIVATE AND CONFIDENTIAL
> This electronic mail is solely for the use of the addressee and may
> contain information which is confidential or privileged.
> If you receive this electronic mail in error, please delete it from
> your system immediately and notify the sender by electronic mail or
> using any of the above contact details.
>
> --
> LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
> To unsubscribe from the LinuxSA list:
> mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
>
--
Systems Administrator
Pracom Ltd.
+61 8 82029074 -=- +61 402 100 671
anthony.symons@sa.pracom.com.au
PRIVILEGED - PRIVATE AND CONFIDENTIAL
This electronic mail is solely for the use of the addressee and may
contain information which is confidential or privileged.
If you receive this electronic mail in error, please delete it from
your system immediately and notify the sender by electronic mail or
using any of the above contact details.
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page