LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-05-2004, 10:06 AM   #1
dannykwok3000
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Sftp permission and group problem


I have a problem about ssh in linux
The situation is that I 've set default permission: 770 in all files and
dirs, "chmod +s danny" and "chown :friend danny" in my folder.
Normally, I make a directory or a file under danny folder and the group is
"friend" and with +s, permission: 770.
But the permission is 755, without +s when I use SFTP to tranfer file to my
account.

Could they know how to solve this problem through setting sftp config or
other configuration??
Thx
 
Old 09-06-2004, 12:10 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Most likely sftp has a default umask setting of 022, which is giving these permissions.. check your config files.
 
Old 09-06-2004, 10:29 PM   #3
dannykwok3000
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thx trickykid, u give me a great help. I would edit the /etc/bashrc from umask 022 to 002. But the Sftp cannot follow this rule and the permission is still followed by the 022. Could you tell me how to change the umask from sftp because I cannot find it in /etc/ssh/sshd_config. Thx
 
Old 09-06-2004, 11:51 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
You know, why even use sftp when you can use scp or rsync, more powerful, secure and they give you better options.. ??
 
Old 09-07-2004, 12:48 AM   #5
dannykwok3000
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
i know scp is a command and i dont know what the rsync is. in fact, i want to provide a file server to our friend and so use sftp but not ftp. if rsync can instead of sftp and solve my problem. It is worth to try. Thx
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chroot sftp user group bmeckle Linux - Newbie 0 06-02-2004 03:58 PM
group permission probs wheaties_box Linux - Security 15 08-20-2003 11:46 AM
Group permission klod Linux - Security 2 07-03-2003 07:08 PM
sftp users can remove files without permission tunedLow Linux - Networking 6 03-06-2003 03:12 PM
weird group permission... lp? WeNdeL Linux - Newbie 5 01-21-2003 06:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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