Linux sftp — how to add new user to access exist directory with write permission?
I have built a website and I can access and edit the website'files on server via the root user. The current file and directory structures are not changeable. Now I am hiring a webpage designer to help me re-design some pages, I am going to let the designer edit the files directly on the server. So I need to add a new user and restrict the new user to access only three front-end related directory. And the three directories are not in the same directory, like below:
The first step adding new user has been accomplished. But the problems are:
1 how to let the new user access above directories with write permission?
2 how to bind above three directories to the new user? (It seems ChrootDirectory can only bind one directory.)
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Hi,
The requirement is like,
the program needs 2 argument one is user_id and second one is directory path. My script will check if that user_id has write access to the directory path. The directory path may be in any file system like AFS or NFS.
Can any one please suggest some points to... (1 Reply)
RHEL5.0
As we know, when root create a new user, a new home directory will be created : /home/user
I want to know what determine the access permission of /home/user .
Thanks! (1 Reply)
Hi,
Im trying to add some validation into my shell script code that basically checks whether a directory exists before SFTP'ing a file to it. If the directory exists then it will add the file, if not then it should return some kind of message. This is the code I have written so far but with no... (1 Reply)
Guys, i wanna get any user files with write permission (on user or group permission) for review but i confuse with -perm parameter.
any body can help me to explain what is that mean?
thank's (1 Reply)
Hi
I am trying to make a web program which is command line equivalent. i have done the coding in cgi program in perl and html for basic forms to take inputs. when i ran the program from web application i see permission denied messages. after analyzing i found apache is running as wwwrun which... (2 Replies)
Hi folks,
I am trying to grant the access like below items using the setfacl command, but i couldn't achieve as what I required. any other possibility.
username : testing
Readonly access in /form_dl/system/prd/logs
Write only access in /form_dl/system/prd/deploy
No access to other... (0 Replies)
Hi All,
We have a scenario in production where we want only one user from a group to modify the file. The file is not set to write permission for application manager.
-r--r--r-- 1 amgr u00 15661716 Aug 30 00:06 DCI.dat
So here amgr will have permission to edit the file. We want a... (10 Replies)
logMsg='Started by '${USER}
LOG_MESSAGE "${logMsg}"
resultCode=$?
if ]; then
return ${resultCode}
fi
touch ${FILELISTPATH}
resultCode=$?
if ]; then
logMsg='failed to create file list:'${FILELISTPATH}
LOG_ERROR "${logMsg}" CUSTOM_PREPROCESS ${FATAL}
... (2 Replies)
Discussion started by: raka123
2 Replies
LEARN ABOUT PLAN9
ftpfs
FTPFS(4) Kernel Interfaces Manual FTPFS(4)NAME
ftpfs - file transfer protocol (FTP) file system
SYNOPSIS
ftpfs [ -/dq ] [ -m mountpoint ] [ -a password ] system
DESCRIPTION
Ftpfs dials the TCP file transfer protocol (FTP) port, 21, on system and mounts itself (see bind(2)) on mountpoint (default /n/ftp) to pro-
vide access to files on the remote machine. If required by the remote machine, ftpfs will prompt for a user name and password. The user
names ftp and anonymous conventionally offer guest/read-only access to machines. Anonymous FTP may be called without user interaction by
using the -a option and specifying the password.
By default the file seen at the mount point is the user's remote home directory. The option -/ forces the mount point to correspond to the
remote root.
To avoid seeing startup messages from the server use option -q. To see all messages from the server use option -d.
To terminate the connection, unmount (see bind(1)) the mount point.
EXAMPLE
You want anonymous FTP access to the system export.lcs.mit.edu. The first import(4) command is only necessary if your machine does not
have access to the desired system, but another, called gateway in this example, does.
import gateway /net
ftpfs -a yourname@yourmachine export.lcs.mit.edu
SOURCE
/sys/src/cmd/ftpfs
SEE ALSO bind(2)BUGS
Symbolic links on remote Unix systems will always have mode 0777 and a length of 8.
After connecting to a TOPS-20 system, the mount point will contain only one directory, usually /n/ftp/PS:<ANONYMOUS>. However, walking to
any valid directory on that machine will succeed and cause that directory entry to appear under the mount point.
Ftpfs caches files and directories. A directory will fall from the cache after 5 quiescent minutes or if the local user changes the direc-
tory by writing or removing a file. Otherwise, remote changes to the directory that occur after the directory has been cached might not be
immediately visible.
There is no way to issue the appropriate commands to handle special synthetic FTP file types such as directories that automatically return
a tar of their contents.
FTPFS(4)