Avatar billede ritajtaylor Nybegynder
17. april 2007 - 20:59 Der er 18 kommentarer

File owner is number not in passwd file and root can't change it

I need an answer really fast. When I create a directory for a user login, a number not a name is the owner which is not in the passwd file. I try chown as root to change to the correct user name but it says that the operation is not permitted.
Please help, Rita
Avatar billede jazzjack Nybegynder
17. april 2007 - 23:02 #1
What are the rights for the directory? (rwxrwxrwx)????
Are there suid bits?
Avatar billede ritajtaylor Nybegynder
18. april 2007 - 02:11 #2
The rights are 755 - rwxr-xr-x. What are suid bits?
Avatar billede ritajtaylor Nybegynder
18. april 2007 - 11:12 #3
I really need this question done. It's infecting my mail account, too. I am ssh from one server to another using my personal account and su. Before I just loginned in as root and chown. Please help. M
Avatar billede langbein Nybegynder
18. april 2007 - 13:47 #4
Hvis du på nivå inne i directory og over directory kjører kommando "ls -l", hva leser du da ?
Avatar billede ritajtaylor Nybegynder
18. april 2007 - 20:37 #5
I will ls -l at work and get back with you, okay?
Avatar billede ritajtaylor Nybegynder
19. april 2007 - 09:32 #6
After typing ls -l I get: drwxr-x---  2 4294967294 sysadm    4096 Apr 18 15:55 rita
Avatar billede langbein Nybegynder
19. april 2007 - 12:45 #7
Hmm .. Not sure, but does it not mean something like: ownner 4294967294 and group sysadm ?
(and file name rita).

What kind of Linux installation is this, it's not some kind of virtual server or something like that ? Is it running under some automated administration tool ?

If you type "whoami" what do you read ?

If you type "touch rita2" and then a new "ls -l" what do you then read ?
Avatar billede ritajtaylor Nybegynder
19. april 2007 - 13:13 #8
After I typed "touch rita" as root (Permission denied as rita) I get:

drwxr-x---  2 4294967294 sysadm    4096 Apr 19 13:10 rita

Then I typed "whoami" as rita (not root) and get rita.
Avatar billede ritajtaylor Nybegynder
19. april 2007 - 13:16 #9
This happens in a log directory and did happen in the home directory but I was able to chown and chgrp as root but am not able to do the same as root in the log file.
Avatar billede langbein Nybegynder
20. april 2007 - 18:07 #10
Anyhow you chould try to do it as user root and not as user rita.

Possibly the logfile is locked because it is used by a program.
Avatar billede langbein Nybegynder
20. april 2007 - 18:11 #11
I asked you which Linux distro you use. You did not answer but in some other tread, I think you say Centos. The reason for this question is to find out if you use a Linux distro with the Selinux mod installed. Centos does. I think that the Selinux function could be a reason that you migh have restricted access to some files/function. I wonder if not Centos has Selinux activated as default. (I use to turn it off.) http://www.nsa.gov/selinux/
Avatar billede ritajtaylor Nybegynder
21. april 2007 - 09:19 #13
So sorry. I use Centos 4.2 and will check the urls when I get back to work. Tak.
Avatar billede jazzjack Nybegynder
22. april 2007 - 22:59 #14
If you just run a default CentOS installation, then you do get SELinux installed.
Avatar billede ritajtaylor Nybegynder
23. april 2007 - 11:57 #15
Bingo! Langbein. You are on the money! It is enabled. If policy allows, do I just type SELINUX=disabled? or do I also have to make the file?
Avatar billede langbein Nybegynder
23. april 2007 - 20:15 #16
I have done that disabling before, because the selinux function realy set up some strange things that can be rather difficult to handle and to find out about. I thinkt there were two alternative procedures one for the temporary and one for the permanent disabling of the function. I can not remember the details now, but I believe that I found it on the Centos forum. For some of us It could be a problem to read and write english well enough, but I guess it will work for you, he, he :-)
Avatar billede langbein Nybegynder
23. april 2007 - 20:21 #17
According to this guide it is only to set it to disabled, see point 4
http://www.howtoforge.com/perfect_setup_centos_4.3_p3
(I had a small memory that told me it was something more to do, but I might be wrong about that.)
Avatar billede ritajtaylor Nybegynder
23. maj 2007 - 09:06 #18
I must live with selinux enabled so thanks for your help langbein and how do I give you the points?
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester