Find the answer to your Linux question:
Results 1 to 6 of 6
What the type of output are you likely to get if you typed % du s /etc???? & if you executed the following commands % cd % mkdor temp % ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2005
    Posts
    2

    Help!!!!!


    What the type of output are you likely to get if you typed % du s /etc????

    &

    if you executed the following commands

    % cd
    % mkdor temp
    % cp /etc/passwd temp
    % chmod 400 temp
    and you then executed the command ls temp what would likely output be?

    all help appreciated!!

    Thanks

  2. #2
    Linux Newbie
    Join Date
    Apr 2005
    Location
    NJ, USA
    Posts
    104
    I actually think that mkdor temp would fail. If you try to type mkdor it won't work. I understand you are trying to make a directory. The command mkdir is the command you probably want. I don't know what that sequence of commands will do though. What is it suppose to do????
    My New years Resolution is 1280x1024

  3. #3
    Linux Enthusiast puntmuts's Avatar
    Join Date
    Dec 2004
    Location
    Republic Banana
    Posts
    562
    I don't want to help people with their homework just because they are lazy. So have a nice search opn google.

  4. #4
    Linux Guru
    Join Date
    May 2004
    Location
    forums.gentoo.org
    Posts
    1,817

    Re: Help!!!!!

    Quote Originally Posted by linuxrookie24
    % cp /etc/passwd temp
    If you do:
    Code:
    ls -l /etc/passwd
    you should see that only root has read permission for that file, so only root can copy it.

    edit:
    and if you look at /etc/passwd, you'll see there are no actual passwords in it, but you didn't ask about that.
    /IMHO
    //got nothin'
    ///this use to look better

  5. #5
    Linux Enthusiast puntmuts's Avatar
    Join Date
    Dec 2004
    Location
    Republic Banana
    Posts
    562
    The passwd file is world readable. Otherwise users cannot login I assume. I did not see it otherwise on distro's I was using, but maybe you have something special.

  6. #6
    Linux Engineer
    Join Date
    Mar 2005
    Location
    Where my hat is
    Posts
    766
    Another homework assignment, huh? Per the site rules, you're on your own.
    Registered Linux user #384279
    Vector Linux SOHO 7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •