LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-04-2008, 02:43 AM   #1
texuser74
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Rep: Reputation: 0
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.
 
Old 02-04-2008, 02:50 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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?
 
Old 02-04-2008, 02:59 AM   #3
texuser74
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 02-04-2008, 03:02 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Not the password, the user id. Are you running chown as root (or with su or sudo)?
 
Old 02-04-2008, 03:06 AM   #5
texuser74
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Original Poster
Rep: Reputation: 0
the user id are also same, in both the boxes its 'linda'

and i used 'su' for running chown
 
Old 02-04-2008, 03:19 AM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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.
 
Old 02-04-2008, 03:36 AM   #7
texuser74
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Original Poster
Rep: Reputation: 0
when i run the command
Quote:
grep linda /etc/passwd | cut -d: -f3
the server returns '1039' and the linda returns '1028'
 
Old 02-04-2008, 03:47 AM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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.
 
Old 02-04-2008, 08:03 PM   #9
texuser74
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Dear Steve, its working fine now, thanks for all your help.
 
Old 02-04-2008, 08:34 PM   #10
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
No problem - glad you got it working
 
  


Reply



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
How to find SMB mounted folder? RileyTheWiley Linux - Newbie 5 01-28-2008 04:47 PM
Can't write to mounted Samba folder dm215 Linux - Newbie 0 01-06-2007 07:30 PM
local folder mounted as ftp jon23d Linux - Networking 2 06-14-2006 04:26 PM
Documents Folder Mounted BarfBag Ubuntu 0 03-09-2006 12:44 PM
Problem in using chmod with mounted folder casper234 Linux - General 5 02-13-2006 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:17 PM.

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