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 DEBIAN
flamerobin
FLAMEROBIN(1) Firebird Administration Tool FLAMEROBIN(1)NAME
flamerobin -- management and data manipulation tool for the Firebird DBMS
SYNOPSIS
flamerobin [-h directory | --home=directory] [-uh directory | --user-home=directory]
DESCRIPTION
flamerobin is a graphical frontend to the Firebird DBMS. It is small and simple, yet offers all the basic features needed to create and
manipulate databases, execute queries and perform administrative tasks.
This manual page only documents the run-time options and environment of flamerobin. Information about using the GUI may be obtained by
selecting the Help -> Manual menu item once the application is running.
flamerobin uses two directory hierarchies for its normal operation. The data directory contains the templates for property pages, the
default configuration and the on-line documentation grouped into three sub-directories as follows:
conf-defs default configuration
docs on-line documentation
html-templates templates for property pages
The user home directory contains the per-user configuration, comprising three entries:
fr_databases.conf this file stores the user's registered databases.
fr_settings.conf this file stores the user's preferences related to the flamerobin GUI.
history this directory holds the SQL statement history, one item per file.
flamerobin accepts several options, which are described as follows:
-h directory
--home=directory
Use directory as the data directory (but see ENVIRONMENT below).
-uh directory
--user-home=directory
Use directory as the user home directory (but see ENVIRONMENT and CAVEATS below).
ENVIRONMENT
FR_HOME
Specifies an alternate location for the flamerobin data directory.
If both -h (or --home) and this environment variable are set, the command line argument takes precedence.
FR_USER_HOME
Specifies an alternate location for the flamerobin user home directory.
If both -uh (or --user-home) and this environment variable are set, the command line argument takes precedence.
FILES
/usr/share/flamerobin
The default flamerobin data directory.
~/.flamerobin
The default flamerobin user home directory.
AUTHORS
flamerobin was written by The FlameRobin Development Team <http://www.flamerobin.org/>.
CAVEATS
flamerobin only writes files under the user home directory. If flamerobin is configured so that this directory and the files contained
therein are shared among several users or concurrent instances of flamerobin, no precaution is taken to avoid overwriting settings created by
other users or other application instances.
NOTES
The specification of the data directory and the user home directory (regardless of whether they occur in the environment or on the command
line) may be the literal string ``$app'' which translates to a common data folder determined at compilation time, or ``$user'' which trans-
lates to the user local data directory. These options currently have effect only on Windows platform.
FlameRobin 0.7 April 12, 2006 FlameRobin 0.7