LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2009, 03:43 AM   #1
billdbr
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Rep: Reputation: 0
Moving files


I have an old fileserver (called gollem) running suse 9.1

I have a new fileserver (called zefod) running Debian Etch v. 2.6

On both fileservers I have the same users but the uid's are different.

f.i. old: user bill uid 1000
new: user bill uid 1001
workstation: user bill uid 1001

I mounted the homedirs of both servers on the workstation (/gollem/bill and /zefod/bill) and copied the files from old to new.

The files were copied, but no I have permission problems on the mounted new fileserver.
- when I copy a file xx.txt from the workstation to /zefod/bill , I get

Could not change permissions for /zefod/bill/xx.txt
the is copied all the same.

- when I create a new file /zefod/bill/yy.txt, the file is created.
when I then edit the file and try to save it I get:

The document could not be saved. It was not possible to write to
/zefod/bill/yy.txt

Can I do something the files on the new server to repair it?

If not What do I do to copy the files from old to new so that no problems will occur?

TIA Bill
 
Old 12-17-2009, 04:52 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Did you explicitly try the following as root?
Code:
chown -R bill /zefod/bill
Evo2.
 
Old 12-17-2009, 05:08 AM   #3
billdbr
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Original Poster
Rep: Reputation: 0
on the new fileserver?

bill@zefod:~/private$ ls -l
total 10812

drwxrwxr-x 40 bill users 4096 2009-11-25 09:25 0ALTIJD BEWAREN
-rwxrw-r-- 1 bill users 815710 2009-01-17 17:13 100_1365.JPG
-rwxrw-r-- 1 bill users 864838 2009-01-17 17:13 10TUNING_Maxiscooter.pdf
-rwxrw-r-- 1 bill users 8878 2009-01-17 17:13 130-309511_IMG.JPG
-rwxrw-r-- 1 bill users 82193 2009-01-17 17:13 130-30951_IMG.JPG
-rwxrw-r-- 1 bill users 3640 2009-01-17 17:13 389601
-rwxrw-r-- 1 bill users 56631 2009-02-01 11:56 3kk600.jpg
-rwxrw-r-- 1 bill users 90 2009-12-08 14:12 aaatest.txt
-rwxrw-r-- 1 bill users 90 2009-12-08 14:33 aaatest.txt~
-rwxrw-r-- 1 bill users 2547634 2009-01-17 17:13 ACHTERKANT-3.jpg
-rwxrw-r-- 1 bill users 56320 2009-02-27 12:19 ACSI campings.doc
-rwxrw-r-- 1 bill users 0 2009-01-17 17:13 AdobeWeb.log
-rwxrw-r-- 1 bill users 30720 2009-02-26 21:44 Adressen de Bruijns.doc
-rwxrw-r-- 1 bill users 1182 2009-01-17 17:13 adressen familie.txt
-rwxrw-r-- 1 bill users 1182 2009-02-26 21:44 adressen.txt~
-rwxrw-r-- 1 bill users 474726 2009-01-17 17:13 AEorMM.pdf
-rwxrw-r-- 1 bill users 2 2009-12-08 14:37 bbbtest.txt
-rwxrw-r-- 1 bill users 13 2009-11-17 22:47 billtest.txt
-rwxrw-r-- 1 bill users 2 2009-11-17 22:47 billtest.txt~

This is on the new fileserver


Mounted on the workstation:

bill@Marvin:/zefod/bill/private> ls -l
total 10632

drwxrwxr-x 40 bill users 0 2009-11-25 09:25 0ALTIJD BEWAREN
-rwxrw-r-- 1 bill users 815710 2009-01-17 17:13 100_1365.JPG
-rwxrw-r-- 1 bill users 864838 2009-01-17 17:13 10TUNING_Maxiscooter.pdf
-rwxrw-r-- 1 bill users 8878 2009-01-17 17:13 130-309511_IMG.JPG
-rwxrw-r-- 1 bill users 82193 2009-01-17 17:13 130-30951_IMG.JPG
-rwxrw-r-- 1 bill users 3640 2009-01-17 17:13 389601
-rwxrw-r-- 1 bill users 56631 2009-02-01 11:56 3kk600.jpg
-rwxrw-r-- 1 bill users 90 2009-12-08 14:12 aaatest.txt
-rwxrw-r-- 1 bill users 90 2009-12-08 14:33 aaatest.txt~
-rwxrw-r-- 1 bill users 2547634 2009-01-17 17:13 ACHTERKANT-3.jpg
-rwxrw-r-- 1 bill users 56320 2009-02-27 12:19 ACSI campings.doc
-rwxrw-r-- 1 bill users 0 2009-01-17 17:13 AdobeWeb.log
-rwxrw-r-- 1 bill users 30720 2009-02-26 21:44 Adressen de Bruijns.doc
-rwxrw-r-- 1 bill users 1182 2009-01-17 17:13 adressen familie.txt
-rwxrw-r-- 1 bill users 1182 2009-02-26 21:44 adressen.txt~
-rwxrw-r-- 1 bill users 474726 2009-01-17 17:13 AEorMM.pdf
-rwxrw-r-- 1 bill users 2 2009-12-08 14:37 bbbtest.txt
-rwxrw-r-- 1 bill users 13 2009-11-17 22:47 billtest.txt
-rwxrw-r-- 1 bill users 2 2009-11-17 22:47 billtest.txt~
 
Old 12-17-2009, 05:23 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
on the new fileserver?
On which ever files your are having permission problems. Which it seems are the files that you copied zefod. These files will probably all still have owner id 1000, but you want to make them 1001. ls -n will show you the owner id.

Evo2.
 
Old 12-17-2009, 05:55 AM   #5
billdbr
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Original Poster
Rep: Reputation: 0
On fileserver zefod:

bill@zefod:~/private$ ls -n
total 10812

drwxrwxr-x 40 1001 100 4096 2009-11-25 09:25 0ALTIJD BEWAREN
-rwxrw-r-- 1 1001 100 815710 2009-01-17 17:13 100_1365.JPG
-rwxrw-r-- 1 1001 100 864838 2009-01-17 17:13 10TUNING_Maxiscooter.pdf
-rwxrw-r-- 1 1001 100 8878 2009-01-17 17:13 130-309511_IMG.JPG
-rwxrw-r-- 1 1001 100 82193 2009-01-17 17:13 130-30951_IMG.JPG
-rwxrw-r-- 1 1001 100 3640 2009-01-17 17:13 389601
-rwxrw-r-- 1 1001 100 56631 2009-02-01 11:56 3kk600.jpg
-rwxrw-r-- 1 1001 100 90 2009-12-08 14:12 aaatest.txt
-rwxrw-r-- 1 1001 100 90 2009-12-08 14:33 aaatest.txt~
-rwxrw-r-- 1 1001 100 2547634 2009-01-17 17:13 ACHTERKANT-3.jpg
-rwxrw-r-- 1 1001 100 56320 2009-02-27 12:19 ACSI campings.doc
-rwxrw-r-- 1 1001 100 0 2009-01-17 17:13 AdobeWeb.log
-rwxrw-r-- 1 1001 100 30720 2009-02-26 21:44 Adressen de Bruijns.doc
-rwxrw-r-- 1 1001 100 1182 2009-01-17 17:13 adressen familie.txt
-rwxrw-r-- 1 1001 100 1182 2009-02-26 21:44 adressen.txt~
-rwxrw-r-- 1 1001 100 474726 2009-01-17 17:13 AEorMM.pdf
-rwxrw-r-- 1 1001 100 2 2009-12-08 14:37 bbbtest.txt
-rwxrw-r-- 1 1001 100 13 2009-11-17 22:47 billtest.txt
-rwxrw-r-- 1 1001 100 2 2009-11-17 22:47 billtest.txt~



mounted on /zefod/bill/private on workstation Marvin:

bill@Marvin:/zefod/bill/private> ls -n
total 10632

drwxrwxr-x 40 1001 100 0 2009-11-25 09:25 0ALTIJD BEWAREN
-rwxrw-r-- 1 1001 100 815710 2009-01-17 17:13 100_1365.JPG
-rwxrw-r-- 1 1001 100 864838 2009-01-17 17:13 10TUNING_Maxiscooter.pdf
-rwxrw-r-- 1 1001 100 8878 2009-01-17 17:13 130-309511_IMG.JPG
-rwxrw-r-- 1 1001 100 82193 2009-01-17 17:13 130-30951_IMG.JPG
-rwxrw-r-- 1 1001 100 3640 2009-01-17 17:13 389601
-rwxrw-r-- 1 1001 100 56631 2009-02-01 11:56 3kk600.jpg
-rwxrw-r-- 1 1001 100 90 2009-12-08 14:12 aaatest.txt
-rwxrw-r-- 1 1001 100 90 2009-12-08 14:33 aaatest.txt~
-rwxrw-r-- 1 1001 100 2547634 2009-01-17 17:13 ACHTERKANT-3.jpg
-rwxrw-r-- 1 1001 100 56320 2009-02-27 12:19 ACSI campings.doc
-rwxrw-r-- 1 1001 100 0 2009-01-17 17:13 AdobeWeb.log
-rwxrw-r-- 1 1001 100 30720 2009-02-26 21:44 Adressen de Bruijns.doc
-rwxrw-r-- 1 1001 100 1182 2009-01-17 17:13 adressen familie.txt
-rwxrw-r-- 1 1001 100 1182 2009-02-26 21:44 adressen.txt~
-rwxrw-r-- 1 1001 100 474726 2009-01-17 17:13 AEorMM.pdf
-rwxrw-r-- 1 1001 100 2 2009-12-08 14:37 bbbtest.txt
-rwxrw-r-- 1 1001 100 13 2009-11-17 22:47 billtest.txt
-rwxrw-r-- 1 1001 100 2 2009-11-17 22:47 billtest.txt~
 
Old 12-17-2009, 06:24 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Ok Bill,
you're loosing me here. I asked if you had tried to chmod the files: you didn't answer.

Your ls -n listings zaphod and marvin (which I'm guessing is the workstation) show uid 1001. On both of these machines the user bill is 1001. Is there still a problem of some sort?

Evo2.
 
Old 12-17-2009, 12:56 PM   #7
billdbr
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Original Poster
Rep: Reputation: 0
marvin is my workstation:
bill@Marvin:/zefod/bill/private> id
uid=1001(bill) gid=100(users) groups=6(disk),16(dialout),33(video),100(users),1000(MOGEN)



I did chmod the files some time ago.

This is the problem:

I create the file 123.txt with vi

bill@Marvin:/zefod/bill/private> vi 123.txt
bill@Marvin:/zefod/bill/private> ls -n
total 10636

drwxrwxr-x 40 1001 100 0 2009-11-25 09:25 0ALTIJD BEWAREN
-rwxrw-r-- 1 1001 100 815710 2009-01-17 17:13 100_1365.JPG
-rwxrw-r-- 1 1001 100 864838 2009-01-17 17:13 10TUNING_Maxiscooter.pdf
-rwxrw-r-- 1 1001 100 18 2009-12-17 16:43 123.txt
-rwxrw-r-- 1 1001 100 8878 2009-01-17 17:13 130-309511_IMG.JPG
-rwxrw-r-- 1 1001 100 82193 2009-01-17 17:13 130-30951_IMG.JPG
-rwxrw-r-- 1 1001 100 3640 2009-01-17 17:13 389601
-rwxrw-r-- 1 1001 100 56631 2009-02-01 11:56 3kk600.jpg
-rwxrw-r-- 1 1001 100 90 2009-12-08 14:12 aaatest.txt
-rwxrw-r-- 1 1001 100 90 2009-12-08 14:33 aaatest.txt~
-rwxrw-r-- 1 1001 100 2547634 2009-01-17 17:13 ACHTERKANT-3.jpg
-rwxrw-r-- 1 1001 100 56320 2009-02-27 12:19 ACSI campings.doc
-rwxrw-r-- 1 1001 100 0 2009-01-17 17:13 AdobeWeb.log
-rwxrw-r-- 1 1001 100 30720 2009-02-26 21:44 Adressen de Bruijns.doc
-rwxrw-r-- 1 1001 100 1182 2009-01-17 17:13 adressen familie.txt
-rwxrw-r-- 1 1001 100 1182 2009-02-26 21:44 adressen.txt~
-rwxrw-r-- 1 1001 100 474726 2009-01-17 17:13 AEorMM.pdf
-rwxrw-r-- 1 1001 100 2 2009-12-08 14:37 bbbtest.txt
-rwxrw-r-- 1 1001 100 13 2009-11-17 22:47 billtest.txt

now edit the file with vi

bill@Marvin:/zefod/bill/private> vi 123.txt
bill@Marvin:/zefod/bill/private> ls -n
total 10636

drwxrwxr-x 40 1001 100 0 2009-11-25 09:25 0ALTIJD BEWAREN
-rwxrw-r-- 1 1001 100 815710 2009-01-17 17:13 100_1365.JPG
-rwxrw-r-- 1 1001 100 864838 2009-01-17 17:13 10TUNING_Maxiscooter.pdf
-rwxrw-r-- 1 1001 100 39 2009-12-17 16:46 123.txt
-rwxrw-r-- 1 1001 100 8878 2009-01-17 17:13 130-309511_IMG.JPG
-rwxrw-r-- 1 1001 100 82193 2009-01-17 17:13 130-30951_IMG.JPG
-rwxrw-r-- 1 1001 100 3640 2009-01-17 17:13 389601
-rwxrw-r-- 1 1001 100 56631 2009-02-01 11:56 3kk600.jpg
-rwxrw-r-- 1 1001 100 90 2009-12-08 14:12 aaatest.txt
-rwxrw-r-- 1 1001 100 90 2009-12-08 14:33 aaatest.txt~
-rwxrw-r-- 1 1001 100 2547634 2009-01-17 17:13 ACHTERKANT-3.jpg
-rwxrw-r-- 1 1001 100 56320 2009-02-27 12:19 ACSI campings.doc
-rwxrw-r-- 1 1001 100 0 2009-01-17 17:13 AdobeWeb.log
-rwxrw-r-- 1 1001 100 30720 2009-02-26 21:44 Adressen de Bruijns.doc
-rwxrw-r-- 1 1001 100 1182 2009-01-17 17:13 adressen familie.txt
-rwxrw-r-- 1 1001 100 1182 2009-02-26 21:44 adressen.txt~
-rwxrw-r-- 1 1001 100 474726 2009-01-17 17:13 AEorMM.pdf
-rwxrw-r-- 1 1001 100 2 2009-12-08 14:37 bbbtest.txt
-rwxrw-r-- 1 1001 100 13 2009-11-17 22:47 billtest.txt
-rwxrw-r-- 1 1001 100 2 2009-11-17 22:47 billtest.txt~


still ok.

now edit the file with kwrite

When I save it I get::

The document could not be saved, as it was not possible to write to file:///zefod/bill/private/123.txt.

I cannot save the file.


when I copy a file from my homedir:

cp /home/bill/456.txt /zefod/bill/private/

the file is copied.

When I drag the file from /home/bill to /zefod/bill/private using konqueror I get:
Could not change permissions for
/zefod/bill/private/456.txt
the file is copied.
The copied file can be edited with vi but not with kwrite.

When I create a file with open office writer and try to save it in
/zefod/bill/private I get:

Error saving document xxx: document not accessible
the document cannot be accessed due to insufficient user rights

I'm totaly in thhe dark here

Last edited by billdbr; 12-17-2009 at 12:58 PM.
 
Old 12-17-2009, 05:27 PM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Ok, so with normal system tools everything works. However when you use KDE, you get vague permission error messages. Sorry, that sounds like a KDE problem. If you can reproduce the problems on the command line I can help, but otherwise I can't

Evo2.
 
Old 12-18-2009, 02:27 AM   #9
billdbr
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you very much Evo2, I'll try a kde forum.

Bill
 
Old 12-30-2009, 03:19 AM   #10
billdbr
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Original Poster
Rep: Reputation: 0
[Solved]Moving files

SOLVED!

ken_yap on the opensuse forum pointed me to

http://bugzilla.kernel.org/show_bug.cgi?id=12246

I put "host msdfs = no" in /etc/samba/smb.conf,

After restarting samba the problem was solved
 
Old 12-30-2009, 03:56 AM   #11
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by billdbr View Post
SOLVED!
Glad to hear it.
Quote:
ken_yap on the opensuse forum pointed me to

http://bugzilla.kernel.org/show_bug.cgi?id=12246

I put "host msdfs = no" in /etc/samba/smb.conf,

After restarting samba the problem was solved
You never told us you were doing this over samba! No wonder there were problems I didn't understand!

Anyway, great that it's working.

Cheers,

Evo2.
 
  


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
moving files from a location to other, preventing to move incomplete files pogo123 Programming 8 11-14-2008 06:21 AM
moving files from a location to other, preventing to move incomplete files pogo123 Linux - Newbie 2 11-13-2008 01:57 PM
Moving files madwac Linux - Newbie 15 08-22-2007 09:28 AM
Moving files Pyrophorus Slackware 5 11-09-2005 10:47 AM
Moving Files arockia Linare 3 09-08-2004 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:10 AM.

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