LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 03: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, 03:50 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
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, 03: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 04:01 AM. Reason: adding thanks
 
Old 02-04-2008, 04:02 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Not the password, the user id. Are you running chown as root (or with su or sudo)?
 
Old 02-04-2008, 04: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, 04:19 AM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
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 04:25 AM.
 
Old 02-04-2008, 04: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, 04:47 AM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
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, 09: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, 09:34 PM   #10
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

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


Reply


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


All times are GMT -5. The time now is 06:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration