LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-02-2008, 06:04 PM   #1
jaredhanks
LQ Newbie
 
Registered: May 2006
Posts: 23

Rep: Reputation: 15
Copying to a folder in a users $HOME dir.


Hello,

I have an interesting problem I need some help with. I'm running CentOS 5.1 and have a "Documents" folder in a particular users $HOME directory that I need to copy a file to using uucp (it's a remote machine with dial up modem). I've changed the $HOME dir to have write permissions (chmod 777 /home/user) and am able to copy the file to the "Documents" folder I created. However, when this user logs in to the graphical screen it gets the following error:

Code:
User's $HOME/.dmrc file is being ignored.  
This prevents the default session and language from being saved.  
File should be owned by user and have 644 permissions.  
User's $HOME directory must be owned by user and not writable by other users.
The user can click "Ok" and get by the error, but I would much rather it not pop up an error at all. If there is no way to disable this, is there another way to make it so I can write to the /home/user/Documents folder with out having explicit write permissions on the /home/user directory?

I have a script that sends files to the "Documents" folder and it's working on older (Redhat 6.2, 7.3, and 9) machines. I have about 300 machines and about 600 users that I would need to retrain if I wanted to move the directory where I sent the "documents". This would not be easy, so I'm looking for another way to do this transparent to the users knowing.

Thanks,
Jared
 
Old 04-02-2008, 08:12 PM   #2
ldunsmo
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
do an "ls -al" on the home directory. My guess is the file/s in question might be owned by root. If so do a "chown -R username ~username"
 
Old 05-02-2008, 06:17 PM   #3
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
I am new to Linux. Someone told me that you can run the "sudo" command to run as root. When I compile the kernel 2.4.36 then I use the "su" command and that gives me the root. Then I exit to go back to user.
 
Old 05-02-2008, 10:01 PM   #4
jsurles
Member
 
Registered: Feb 2007
Location: Katy, TX
Distribution: gentoo, slackware, centos, ESX, gnu/linux
Posts: 34

Rep: Reputation: 15
Maybe I'm confused.. well.. I know I am.

Why are you using uucp? Couldn't you just scp or rsync it?
 
Old 05-03-2008, 12:17 AM   #5
Draciron
Member
 
Registered: Jul 2006
Posts: 44

Rep: Reputation: 16
Quote:
Originally Posted by jsurles View Post
Maybe I'm confused.. well.. I know I am.

Why are you using uucp? Couldn't you just scp or rsync it?
SCP is the way to do it. You can RSYNCH over an SSH/SCP tunnel.
 
  


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
Add to path of all users home Dir. abovenbeyond Linux - Server 1 12-18-2007 05:27 PM
FTP users are jailed to home dir ride153 Linux - Server 4 03-08-2007 05:47 PM
find users home dir c++ Simon_6162 Programming 2 02-04-2005 07:53 PM
Restricting FTP Users to their home dir in vsftpd ~ForgottenFlux~ Linux - Software 2 09-03-2003 07:54 PM
FTP Users Go to There Home Dir FS2003 Linux - Networking 1 07-11-2003 01:28 PM

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

All times are GMT -5. The time now is 10:14 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