05-26-2008
Add user with restiction
Hi,
I have created a directory and chown it to a group "test". I want to create a user with smit user and attribute to this user access only to this directory. Is this possible?
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello i have some probelm in the Unix Sun system ....so anyone can u help me how to sovle the problem :
1.how to add the user name and password.
2.list out the command..
Thank You (1 Reply)
Discussion started by: alan thui
1 Replies
2. UNIX for Dummies Questions & Answers
I am trying to figure out how to add a user from the web (w/ PHP or PERL): is it possible? (2 Replies)
Discussion started by: ryanroth
2 Replies
3. Solaris
hey...I am new in solaris...so how can I add user on my sun solaris system I have root user I would like one more user similar to root...as I understand root is super user...how can I do that I know that there is useradd command but can anyone give me an example...
thanks,
cheers, (3 Replies)
Discussion started by: amon
3 Replies
4. UNIX for Dummies Questions & Answers
hi ..m new to linux..i want to know d shell script to add new user to the system without using adduser command.. (1 Reply)
Discussion started by: jaini
1 Replies
5. UNIX for Advanced & Expert Users
Hi all,
I got a preconfigured Debian 4 (etch) box. When I add a user, it tells me it added and I can "su" as a new user but I can't login with it through SSH, SFTP, etc.
Why?
Thanks for your help. (30 Replies)
Discussion started by: mjdousti
30 Replies
6. UNIX for Dummies Questions & Answers
Hello Experts,
Guide me how to add new users (user id , passwd) in unix/Linux with different privileges
like -->
1> It can be accessible by telnet (or where i should check/change to give different privileges like telnet or ssh2 or FTP)
2> can run only 1 command / script (2 Replies)
Discussion started by: darshak
2 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
for each user
Create a account formatted as last name first initial. Example (southerm)
Ensure no... (0 Replies)
Discussion started by: moosemd
0 Replies
8. UNIX for Dummies Questions & Answers
Dears,
I want to add a user and give him rights only for a spesific folder and take the files via ftp. The user shouldn't see the other files above or belov his folder.
lets say I have "user".
my directories:
/a
/b/d
/c
when I connect to the system I want this "user" to connect... (3 Replies)
Discussion started by: hubatuwang
3 Replies
9. Red Hat
I could not create the user name with the number infront of...
useradd 8siva
useradd: Invalid account name `8siva' (3 Replies)
Discussion started by: gsiva
3 Replies
10. Linux
I want to add a user like below in Linux. Please assist
Below is the information from /etc/passwd file
---------- Post updated at 02:04 PM ---------- Previous update was at 10:05 AM ----------
Not sure why there is X in shadow file (6 Replies)
Discussion started by: prash358
6 Replies
LEARN ABOUT OPENDARWIN
chown
CHOWN(8) BSD System Manager's Manual CHOWN(8)
NAME
chown -- change file owner and group
SYNOPSIS
chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ...
chown [-fhv] [-R [-H | -L | -P]] :group file ...
DESCRIPTION
The chown utility changes the user ID and/or the group ID of the specified files. Symbolic links named by arguments are silently left
unchanged unless -h is used.
The options are as follows:
-H If the -R option is specified, symbolic links on the command line are followed. (Symbolic links encountered in the tree traversal
are not followed.)
-L If the -R option is specified, all symbolic links are followed.
-P If the -R option is specified, no symbolic links are followed. This is the default.
-R Change the user ID and/or the group ID for the file hierarchies rooted in the files instead of just the files themselves.
-f Don't report any failure to change file owner or group, nor modify the exit status to reflect such failures.
-h If the file is a symbolic link, change the user ID and/or the group ID of the link itself.
-v Cause chown to be verbose, showing files as the owner is modified.
The -H, -L and -P options are ignored unless the -R option is specified. In addition, these options override each other and the command's
actions are determined by the last one specified.
The owner and group operands are both optional, however, one must be specified. If the group operand is specified, it must be preceded by a
colon (``:'') character.
The owner may be either a numeric user ID or a user name. If a user name is also a numeric user ID, the operand is used as a user name. The
group may be either a numeric group ID or a group name. If a group name is also a numeric group ID, the operand is used as a group name.
The ownership of a file may only be altered by a super-user for obvious security reasons.
DIAGNOSTICS
The chown utility exits 0 on success, and >0 if an error occurs.
COMPATIBILITY
Previous versions of the chown utility used the dot (``.'') character to distinguish the group name. This has been changed to be a colon
(``:'') character so that user and group names may contain the dot character.
On previous versions of this system, symbolic links did not have owners.
The -v option is non-standard and its use in scripts is not recommended.
SEE ALSO
chgrp(1), find(1), chown(2), fts(3), symlink(7)
STANDARDS
The chown utility is expected to be IEEE Std 1003.2 (``POSIX.2'') compliant.
HISTORY
A chown utility appeared in Version 1 AT&T UNIX.
BSD
March 31, 1994 BSD