Wednesday, January 16, 2013

How can I set folder permissions in linux in such a way that users can create files/folders, but not delete?

Q. I have made a folder on my linux server, which needs to function as some sort of "deposit box".

Users should be able to create files & folders, but not delete them after they have been created.
Is that possible from a linux command line?

A. You'd probably have to mess with umask and chmod.
umask [-p] [-S] [mode]
The user file-creation mask is set to mode. If mode begins with a digit, it is interpreted as an octal number; otherwise it is interpreted as a symbolic mode mask similar to that accepted by chmod(1). If mode is omitted, the current value of the mask is printed. The -S option causes the mask to be printed in symbolic form; the default output is an octal number. If the -p option is supplied, and mode is omitted, the output is in a form that may be reused as input. The return status is 0 if the mode was successfully changed or if no mode argument was supplied, and false otherwise.

What wireless internet cards work right out of the box for the linux ubuntu operating system, i need to buy on
Q. What wireless internet cards work right out of the box for the linux ubuntu operating system, i need to buy one but I have no clue about any of the linux command lines or anything. I also have a zyxel g router

A. I have a Dell desktop with a LinkSys WMP54GS wireless card. After installing Ubuntu the wireless card was automatically recognized.

How do I reset the numbers on Linux command line prompt?
Q. how do I reset the numbers on the command line prompt:

hostname[1000]%

I noticed when I log in it always starts at 1000 and counts up til I logout and login again. When I login again it still starts at 1000. How do I reset this number? I thought it was the history command, but learned it wasn't.

A. You need to set the prompt variables in your profile file or in the .bash_rc file.

Do a search on "linux .profile" (note the dot in front of "profile"). Look for ways to set the PS1 and PS2 prompts.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

No comments:

Post a Comment