Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-04-2008, 02:43 AM
|
#1
|
LQ Newbie
Registered: Jan 2008
Posts: 7
Rep:
|
problem with mounted folder
Dear Users,
In my slackware12 server's home directory, I have these folders
Code:
drwx--x--x 2 linda users 4096 Feb 4 14:47 linda/
drwx--x--x 21 irene users 4096 Jan 31 17:27 irene/
When I mounted 'slackware12:/home /slackware12/home' on my new slackware machine 'linda', the mounted folder /slackware12/home on linda's station shows
Code:
drwx--x--x 2 1035 users 4096 Feb 4 14:47 linda/
drwx--x--x 21 irene users 4096 Jan 31 17:27 irene/
I have problem with linda's folder showing as 1035 as user, I can't change the owner of this folder from 1035 to linda.
Please help.
|
|
|
02-04-2008, 02:50 AM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep:
|
Are you talking about 2 different boxes? If so, it sounds like the user id in /etc/passwd is different for the linda user on each box. chown should fix this - what syntax did you use when you tried it?
|
|
|
02-04-2008, 02:59 AM
|
#3
|
LQ Newbie
Registered: Jan 2008
Posts: 7
Original Poster
Rep:
|
hi gilead, thanks for your reply
the user linda's password in both the boxes are same.
I tried 'chown linda linda' in linda's machine in root mode, but i get the following error
Quote:
chown: changing ownership of `linda': Operation not permitted
|
Last edited by texuser74; 02-04-2008 at 03:01 AM.
Reason: adding thanks
|
|
|
02-04-2008, 03:02 AM
|
#4
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep:
|
Not the password, the user id. Are you running chown as root (or with su or sudo)?
|
|
|
02-04-2008, 03:06 AM
|
#5
|
LQ Newbie
Registered: Jan 2008
Posts: 7
Original Poster
Rep:
|
the user id are also same, in both the boxes its 'linda'
and i used 'su' for running chown
|
|
|
02-04-2008, 03:19 AM
|
#6
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep:
|
Sorry, I'm explaining myself badly. If you run the following command on each box, do you get the same output?
Code:
grep linda /etc/passwd | cut -d: -f3
As far as the permission error goes, are you running the chown command on the box where the folder actually exists (not where it is mounted to)?
Last edited by gilead; 02-04-2008 at 03:25 AM.
|
|
|
02-04-2008, 03:36 AM
|
#7
|
LQ Newbie
Registered: Jan 2008
Posts: 7
Original Poster
Rep:
|
when i run the command
Quote:
grep linda /etc/passwd | cut -d: -f3
|
the server returns '1039' and the linda returns '1028'
|
|
|
02-04-2008, 03:47 AM
|
#8
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep:
|
Is that a typo? In the earlier post, the user id 1035 was displayed instead of the user name linda. I'm assuming it is... The fastest way to change the displayed info, would be to use vipw to alter linda's user id to be 1035 instead of 1028.
There won't be a duplicate user id because of this, because if 1035 were already being used, a different user name would have been displayed.
|
|
|
02-04-2008, 08:03 PM
|
#9
|
LQ Newbie
Registered: Jan 2008
Posts: 7
Original Poster
Rep:
|
Dear Steve, its working fine now, thanks for all your help.
|
|
|
02-04-2008, 08:34 PM
|
#10
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep:
|
No problem - glad you got it working
|
|
|
All times are GMT -5. The time now is 07:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|