Partition in Linux server

Posted on 2007-10-08
Last Modified: 2013-12-15
I'm a new bie of Linux user and have tried to install Linux server. There is a part that I do not fully understand about the way to partition. The partition that I did, are

/ root
Swap Swap Temporary virtual memory

My question is that I want to have the place that allow users to access, in other word, it's share drive.
At this moment, I see program folder and home folder.

Can any one enlight me how to set it up ?

Question by:mpitak
    LVL 40

    Expert Comment


    Can you clarify what you want to do?

    If you want to give read/write perms to all users on the server to a particular dir, then

    1- create the dir if not already exists

    mkdir /dir1

    2- Change the ownership of the dir if required

    chown user:group /dir1 # here put the actual username and group name of the owner.

    3- change perms of the dir

    chmod a+rw /dir1

    4- If you want to let users create files/dirs and be able to delete their own files/dirs only, then you need to set the sticky bit

    chmod +t /dir1

    Please note that files and subdirectories created by different users will have their perms managed by owners.

    If you want to share the dir network wide, then either use NFS or Samba.


    Author Comment

    Sorry that I may not make my question so clear.

    My objective is that I want to set up Linux server which allow users to access dedicated folder in server and all users are using XP.  Base on my first installation, from my notebook (as a client), I can map to ther server and can see program folder and home folder (show folder name as login id).  However, I do not know how to set up additional folder that all users can see and may read/write from this shared folder
    LVL 14

    Accepted Solution

    Ah, so you're running samba to share directories to windows users.

    Take a look at /etc/samba/smb.conf, you'll need to add a new share in this file.  Samba also has a web admin tool called swat that you can enable to give you a more graphical way of editing the configuration file.  What you'll want to do is make a new share, where it is physically located on the disk is up to you - the name doesn't have to correspond - you probably want to make it wherever you have the most space.  If /home has the most space, make a /home/shared and share that out, etc.

    Author Comment

    Thanks for advice.

    I have to try myself if it's working. However, I got a idea from the solution

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
    rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now