10-15-2010
This is....
Hi. Thanks for replying. I have installed Debian just to play and learn about linux. My goal is to lean how to create users on linux and how to admin them. I didnt do anything more about users but added few users to the system by using command "useradd" (this i did as "root").So my users now can accees linux remotly using ssh or they can ftp into their file system. For example when users wants to create html document he will ftp into the server and it will be presented with his directory which is /home/username...Now at this point since user wants to create some .html file he will create "public_html" directory and add html file he created locally on his machine. Now at this point user wants to view this file on the web by going to this url ....
http://www.servername.com/~username/file.html.....but he gets 404 error.
What can I as admin do to make it possible for user to be able to see file.html on the web?
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi there,
I have a quick question about the UNIX command find, if you can help me I will appreciate it...
I am trying tho find a file which is under my 'public_html' directory.
As I know, I am making the command > find ~ -name filename(or directory name) to find the file or directory... (4 Replies)
Discussion started by: milhan
4 Replies
2. UNIX for Dummies Questions & Answers
I have two users, user1 and defaultuser. Whenever i logon to my unix session from a remote machine i log into defaultuser. Inside this "defaultuser" i have some setup files that i need to run from the other user that i have created myself i.e. "user1". The problem is even granting the ownership of... (3 Replies)
Discussion started by: awaismalik82
3 Replies
3. Shell Programming and Scripting
hi everyone.
iīve been burning my head for a week now with this problem and i couldnīt find a solution. iīve been looking for an answer in this forum but nothing either. so i decided to ask.
the thing is, i want to create a users with permission to kill just a group of users. i know how to write... (6 Replies)
Discussion started by: lucasmarin
6 Replies
4. UNIX for Dummies Questions & Answers
Hello!
My web host has the public_html permission on my account set to 750.
1. Does this setting permit the world to use my submission forms
(contained within contact.html and purchase_order.html)?
2. The "0" entry looks like it blocks the public from conducting all activity
on my site.... (6 Replies)
Discussion started by: Texan
6 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I created testuser. by following command.
/usr/sbin/adduser -n test -d /disk05/collections/GET/testdata/
and then set its password by following command.
passwd testuser
When I login to system by testuser, it enters everything is ok.
The problem is how to set permission to this... (3 Replies)
Discussion started by: mr_bold
3 Replies
6. AIX
Hello, I need to allow a user the ability to create files in a directory that is owned by another user/group. How can I do this? Thank you.
AIX version: 5.3.0.0
~David (4 Replies)
Discussion started by: dkranes
4 Replies
7. UNIX for Dummies Questions & Answers
hello,
I would like to grant full access to a directory which is owned by root and the web application that created it. I have though of adding the permission to the whole world, but for security reason I would like to grant it to one more user.
I have tried this 'chmod -U newUser+wrx... (2 Replies)
Discussion started by: run123
2 Replies
8. Web Development
Hi all,
Exactly like my title says.
I am learning PHP and MySQL and I used to use /var/www/ to host (contain or store) my files (.htm/.php) for testing. I could configure, finally, apache2 to use ~/public_html instead.
Now I when I tried to use $_SERVER it still directs (I used echo to show... (7 Replies)
Discussion started by: faizlo
7 Replies
9. UNIX for Advanced & Expert Users
Hello,
I have a a directory dir1 with permissions 700 (yes wantedly) and is owned by user1:group1
rwx------ user1 group1 dir1I need to give permissions to user2 (belongs to group2) on dir1 and its files, so I granted the permissions using setfacl ; instead of adding the user to groups and... (3 Replies)
Discussion started by: karumudi7
3 Replies
LEARN ABOUT CENTOS
rename
RENAME(1) User Commands RENAME(1)
NAME
rename - rename files
SYNOPSIS
rename [options] expression replacement file...
DESCRIPTION
rename will rename the specified files by replacing the first occurrence of expression in their name by replacement.
OPTIONS
-v, --verbose
Give visual feedback which files where renamed, if any.
-V, --version
Display version information and exit.
-s, --symlink
Peform rename on symlink target
-h, --help
Display help text and exit.
EXAMPLES
Given the files foo1, ..., foo9, foo10, ..., foo278, the commands
rename foo foo0 foo?
rename foo foo0 foo??
will turn them into foo001, ..., foo009, foo010, ..., foo278. And
rename .htm .html *.htm
will fix the extension of your html files.
WARNING
The renaming has no safeguards. If the user has permission to rewrite file names, the command will perform the action without any ques-
tions. For example, the result can be quite drastic when the command is run as root in the /lib directory. Always make a backup before
running the command, unless you truly know what you are doing.
SEE ALSO
mmv(1), mv(1)
AVAILABILITY
The rename command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux June 2011 RENAME(1)