Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-20-2002, 03:57 PM   #1
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
ownership of files changed after upgrade

Hi guys ...

I have a weird phenomenon here ...
I just upgraded my home box from Slack 8 to 8.1
and now newly created files from my normal
user are created with user:root as ownership.

That's quite annoying since I can't overwrite them with
a file's version created on a different machine...

How can I change that back? :)

Old 12-20-2002, 08:34 PM   #2
Senior Member
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
Take a look in the /etc/passwd and /etc/group files and see what the userid numbers are assigned. In the passwd and group file, the root user is normally 0. In the group file, the users group is normally 100. (Note the "s" on users) I have not seen a user in the passwd file called "user" before. But if the login that you are actually using has an ID or group ID set for another account then that account will be used.

The very first user added to the passwd file will usually start with the ID of 1000 and in the group 100. The group 100 would be the users group. But if the login userid was modified to 0, then that user would be in group assignment for root. Perhaps you normal login account is using the name "user" and that ID might be correct, but it might just be in the wrong group.

If you really want the user ID's and the groups ID's they are set but you want that user to be able to modify the files by the group permissions then you might try changing the umask value assignment in in /etc/profile to 002 instead of 022. That would allow owner and group full permission for any new files created and world read and execute only. For the umask, value it is exactly opposite what you desire for the settings. I think the operation is called a bit level "NOR" operation. The full permission mask of 777 is NOR'ed with the default umask to clear the bits that are set in both values. Anybody else can feel free to correct or elaborate more if desired.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing permissions and ownership on many files and folders Cinematography Linux - General 4 08-01-2005 04:20 AM
Keeping ownership of files rtcary Linux - Newbie 2 07-17-2005 05:14 PM
sudo: How can i change the ownership of particular files? anoopp Linux - Security 1 03-18-2005 03:03 AM
Ownership of new Files in SAMBA ghight Linux - Software 6 02-06-2003 11:40 AM
Maybe a newbie question: ownership changed Cps530 Linux - Security 4 08-19-2002 03:43 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration