Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: command. "rm" "lsattr"

  1. #1
    Join Date
    Nov 2010
    Location
    denmark
    Posts
    88

    Default command. "rm" "lsattr"

    I've tried to delete my / tmp / directory white "rm" but without luck. I have the following with "lsattr" tried to look at the files I can not delete. but I do not understand the attribute e "e--------------. / ​​plugtmp" or whatever it is denying me access to other files

    lsattr: Adgang nægtet While reading flags on ./luxh2ybf.tmp
    lsattr: Adgang nægtet While reading flags on ./luxh302n.tmp
    -------------e- ./plugtmp
    -------------e- ./virtual-hans.7Owu4o
    lsattr: Adgang nægtet While reading flags on ./luxh302e.tmp
    lsattr: Adgang nægtet While reading flags on ./luxh302l.tmp
    -------------e- ./hans
    -------------e- ./virtual-hans.tMgFSB
    -------------e- ./virtual-hans.2bdkzC
    lsattr: Adgang nægtet While reading flags on ./luxh2ybd.tmp

  2. #2
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: command. "rm" "lsattr"

    On 02/20/2012 07:36 PM, hhbuur wrote:
    > I've tried to delete my / tmp / directory


    first, i do not believe Linux can run without a /tmp so unless it is
    your purpose to kill your system, i would stop trying to remove the
    directory..

    second, i believe it is probably possible to learn what inside the /tmp
    directory is not in use....but, i do not know offhand an easy way to
    know what inside can be safely removed--so, i would (if i were you)
    cease trying (i assume, you are working inside a up and running
    system--if, on the other hand you have booted from a live CD and are
    looking at the /tmp of a shutdown system, then everything you see in
    /tmp (but NOT /tmp itself) can be deleted..

    third, if you just want to make sure there is nothing in there which is
    not needed then do this: 'Clear Temp Files at Boot - openSUSE Forums'
    (http://tinyurl.com/yzmzp5b)

    fourth, anyway, why did you want to remove tmp?

    --
    DD http://tinyurl.com/DD-Caveat

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,732

    Default Re: command. "rm" "lsattr"

    I second DD's remarks. And please, next time you want to show computer output to illustrate your story (which is something I love)), use CODE tags to seperate it clearly from your story text, to conserve the lay-out created by the computer program and in generaal to make it better readable: http://forums.opensuse.org/english/i...ags-guide.html
    Last edited by hcvv; 20-Feb-2012 at 13:14.
    Henk van Velden

  4. #4
    Join Date
    Nov 2010
    Location
    denmark
    Posts
    88

    Default Re: command. "rm" "lsattr"

    ok I have not as written tried to delete / tmp but the contents of the directory.
    why I try to delete from / tmp. I am still going through "SUSE Linux Toolbox-1000-Commands-for-opensuse-and-SUSE-Linux-Enterprise.pdf2" and reached the command "lsattr" so I've just tried som.

  5. #5
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,037

    Default Re: command. "rm" "lsattr"

    On Mon, 20 Feb 2012 20:16:03 +0000, hhbuur wrote:

    > ok I have not as written tried to delete / tmp but the contents of the
    > directory.


    Install tmpwatch to do this rather than trying to use rm to do it -
    tmpwatch is a much safer way to do this as it checks to see if the files
    are actually being used for something and leaves them alone if they are.

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,732

    Default Re: command. "rm" "lsattr"

    1) it is not / tmp, but /tmp (white space is important)

    2) do not delete files in /tmp unless you know exectly what you do. When you want to experiment, you beter do this on a test directory (and files) within your own home directory.

    3) you may of course use lsattr, but it is specialy for attributes of files on ext2/3/4 file systems and not for the generaly used attibutes. Most people will never use it, but use ls -l .

    4) when you want to know more about lsattr, type:
    Code:
    man lsattr
    5) you will find there that it points to chattr for the meaning of the attribute letters, thus do
    Code:
    man chattr
    for explanation about the e you see.
    Henk van Velden

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,732

    Default Re: command. "rm" "lsattr"

    And to know why you have no access to a file, do e.g.
    Code:
    ls -l /tmp/plugtmp
    because this gives you the owner, group and access bits of the file which lsattr doesn't.
    Henk van Velden

  8. #8
    Join Date
    Nov 2010
    Location
    denmark
    Posts
    88

    Default Re: command. "rm" "lsattr"

    I guess I can not afford permission.

    Code:
    :~> ls -l /tmp/plugtmp
    totalt 0
    And also thanks for the informative answer. wg hhb

  9. #9
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,732

    Default Re: command. "rm" "lsattr"

    When /tmp/plugtemp is a directory, you should do:
    Code:
    ls -ld /tmp/plugtmp
    Again, when you want to learn about a command like ls, do
    Code:
    man ls
    Henk van Velden

  10. #10
    Join Date
    Nov 2010
    Location
    denmark
    Posts
    88

    Default Re: command. "rm" "lsattr"

    yes i begin to see wot you are saying. and it is root permission there is requiter
    i got tmpwatch install and it seems to be working, i added these line.
    Code:
    sudo /usr/sbin/tmpwatch -umc 1 /tmp
    i doe not think that i have # /tmp/plugtemp but only # /tmp

    Code:
    drwxrwxrwt 19 root root 4096 21 feb 14:35 .

Page 1 of 2 12 LastLast

Posting Permissions

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